https://download.csdn.net/download/qq_41739364/86339152
2024/11/2 16:33:25 2.08MB python
1
使用LinkedList类编写程序,用某种集合接口的实现类作存储,实现具有自定义排序功能的包含姓名、年龄、身高、职称等内容的人事信息输入和打印。
2024/10/21 18:12:28 7KB java LinkedList 比较器 任意排序
1
leetcodepython题解,包含大量leetcode题目的解法,源代码,python实现CourseSchedule21.4.4Numberofislands14.5HeapsMergeKSortedLinkedLists1.5.1KthLargestElementinanArray1.5.2Arrays1.62sum‖l1.62SumⅢ1.6.2ContainsDuplicate1.6.3RotateArray1.643SumSmaller1.653Sumclosest1.663Sum1.6.7TwoSum1.68PlusOne1.6.9BestTimetoBuyandSellStock1.6.10Shortestworddistance1.6.11Movezeroes1.6.12ContainsDuplicate1.6.13MajorityElement1.6.14RemoveDuplicatesfromSortedArray1.6.15NestedListWeightSum1.6.16NestedListWeightedSumIl1.6.17Removeelement1.6.18IntersectionofTwoArraysll1.6.19MergeSortedArrays1.6.20ReverseVowelsofaString1.6.21IntersectionofTwoArrays1.6.22Containerwithmostwater1.6.23ProductofArrayExceptSelf1.6.24TrappingRainWater1.6.25MaximumSubarray1.6.26BestTimetoBuyandSellStockIl1.6.27FindMinimuminRotatedSortedArray1.6.28Pascal'sTriangle1.6.29Pascal'sTriangle‖l1.6.30SummaryRanges1.6.31MissingNumber1.6.32StringsValidAnagram1.7.1Validpalindrome1.7.2WordPattern1.7.3ValidParentheses1.7.4IsomorphicStrings1.7.5ReverseString1.7.6BitManipulationSumofTwoIntegers18.1SingleNumber18.2Singlenumber‖18.3SingleNumberIll1.8.4Maths1.9ReverseInteger1.9.1Palindromenumber19.2Pow(x,n)19.3Subsets1.94Subsets‖195FractiontoRecurringDecimal19.6Excelsheetcolumnnumber19.7Excelsheetcolumntitle19.8FactorialTrailingzeros199HappyNumber1.9.10Countprimes1.9.11Plusone19.12DivideTwoIntegers19.13MultiplyStrings1.9.14MaxPointsonaline1.9.15ProductofArrayExceptSelf19.16Powerofthree19.17IntegerBreak1.9.18Poweroffour9.19Adddigits1.9.20UglyNumber1.9.21glyNumberll1.9.22SuperUglyNumber19.23FindKpairswithsmallestsums1.924SelfCrossing1.9.25Paintfence1.9.26Bulbswitcher19.27Nimgame1.9.28Matrix1.10RotateImage1.10.1SetmatrixZeroes1.10.2Searcha2DMatrix1.10.3Searcha2dMatrixl1.10.4SpiralMatrix1.10.5SpiralMatrix‖l1.10.6DesignLRUCache1.11.1IntroductionMyLeetcodeSolutionsinPythonThisbookwillcontainmysolutionsinPythontotheleetcodeproblems.Currently,willjusttrytoposttheacceptedsolutions.TheplanistoeventuallyincludedetailedexplanationsofeachandeverysolutionamdoingthisjustforfunLinkedListCycleLinkedListCvcleGivenalinkedlist,determineifithasacycleinitFollowup:Canyousolveitwithoutusingextraspace?Url:https://leetcode.com/problems/linked-list-cycle/Definitionforsingly-linkedlistclassListNodeobject)###definit(self,x)self,val=xself,nextNoneclassSolution(object):defhasCycle(self,head)IItypehead:ListNodertype:boolIIIIifhead=nonereturnfalseelsefastheadslow=headWhilefastnoneandfast.nextnonesloW=slownextfastfast.nextnextiffast=slow:breaki千fastNoneorfast.next=nonereturnFalseeliffast=slowreturntruereturnfalseLinkedListCycleReverseLinkedListReverseLinkedlistReverseasinglylinkedlistUrl:https://eetcode.com/problems/reverse-linked-list/definitionforsingly-linkedlist#tclassListNode(object):##def-init(self,x)self.∨al=xselfnextnoneclassSolution(object):defreverseList(self,head)11IIl1typehead:ListNodertype:ListNodeifhead=nonereturnnoneelifhead!=noneandheadnext=nonereturnheadelsetempNonenextnodenoneWhileheadNonenextnodeheadnexthead.nexttemptemp=headheadnextnodereturntempDeletenodeinalinkedlistDeletenodeinalinkedlistWriteafunctiontodeleteanode(exceptthetail)inasinglylinkedlist,givenonlyaccesstothatnodeSupposedthelinkedlistis1->2->3->4andyouaregiventhethirdnodewithvalue3,thelinkedlistshouldbecome1->2->4aftercallingyourfunctionUrl:https://eetcode.com/problems/delete-node-in-a-linked-list/Definitionforsingly-linkedlistclassListNode(object):#def-init(self,x)#self,valxself,nextNoneclasssolution(object):defdeleteNode(self,node):IIlIItypenode:ListNodertype:voidDonotreturnanythingmodifynodein-placeinsteadI111fnode=nonepasse⊥se:nextnodenode.nextnodevalnextnodevalnode.nextnextnode,next
2023/11/8 17:06:47 574KB leetcode python题解
1
重新打包编译,解决了并发生抛错问题java.util.LinkedList$ListItr.checkForComodificationQueueresponeBacklog=newConcurrentLinkedQueue();
2023/9/20 13:27:18 22KB Jmeterwebsocket jar插件
1
Java面试题01.面试的全体流程Java面试题02.java的垮平台原理Java面试题03.搭建一个java的开发环境Java面试题04.java中int占几个字节Java面试题05.java面向对象的特征Java面试题06.装箱和拆箱Java面试题07.==和equals的区别Java面试题08.StringJava面试题09.讲一下java中的集合Java面试题10.ArrayList和LinkedList的区别Java面试题11.HashMap和HashTable的区别Java面试题12.实现一个拷贝文件的工具类要使用字节流还是字符串Java面试题13.线程的的实现方式?怎么启动线程?怎么区分线程?Java面试题14.线程并发库和线程池的作用Java面试题15.设计模式和常用的设计模式Java面试题16.httpgetpost请求的区别Java面试题17.说说你对Servlet的理解Java面试题18.Servlet的生命周期Java面试题19.Servlet中forward和redirect的区别Java面试题20.jsp和Servlet的相同点和不同点Java面试题21.内置对象和四大作用域和页面传值Java面试题22.Session和Cookie的区别和使用场景Java面试题23.mvc模式和mvc各部分的实现
2020/8/7 10:26:24 138.75MB java面试
1
LinkedList.java
2016/6/25 16:50:19 41KB linked list
1
一个java编程问题,关于点菜浏览次数:629次悬赏分:15|处理时间:2010-1-1413:10|提问者:aimiaozi现在有一份菜单给客人察看,并要计算他们的消费。
要求:客人菜时要打印出菜单,而且只需输入菜号即点菜,并要打印出客人所点的菜,最后计算客人应付的菜钱。
编号菜名价钱01扬州炒饭5.002辣子鸡丁9.003羊肉串5.004鸡汤15.0各位高手帮帮忙吧~~~~~能做得了全部最好,谢谢!!!问题补充:程序是要输入菜号就能知道菜名、菜价,我就是不会这点。


如果可以,希望能用一维数组做出来。
我是初学者!!!!!答得好能加分哦,谢谢!!麻烦各位了,请多包涵!最佳答案packageddd;publicclassDish{privateStringname;privateStringid;privatedoubleunit;privateintnumber;privateStringtext;publicDish(Stringid,Stringname,doubleunit,intnumber){this.id=id;this.name=name;this.unit=unit;this.number=number;}publicDish(){}publicStringgetName(){returnname;}publicvoidsetName(Stringname){this.name=name;}publicStringgetId(){returnid;}publicvoidsetId(Stringid){this.id=id;}publicdoublegetUnit(){returnunit;}publicvoidsetUnit(doubleunit){this.unit=unit;}publicintgetNumber(){returnnumber;}publicvoidsetNumber(intnumber){this.number=number;}publicStringgetText(){returntext;}publicvoidsetText(Stringtext){this.text=text;}publicDishclone(){Dishd=newDish();d.setId(id);d.setName(name);d.setUnit(unit);d.setNumber(number);returnd;}}-----------------------------------------packageddd;importjava.sql.Date;importjava.text.SimpleDateFormat;importjava.util.LinkedList;importjava.util.List;publicclassOrder{privateStringuser;publicListlist;privatedoublesumMoney;privateStringdate;publicOrder(Stringuser){this.user=user;SimpleDateFormatformat=newSimpleDateFormat("yyyy-MM-ddhh:mm:ss");Datedate=newDate(System.currentTimeMillis());this.date=format.format(date);list=newLinkedList();}publicListgetList(){returnlist;}publicvoidsetList(Listlist){this.list=list;}publicdoublegetSumMoney(){returnsumMoney;}publicvoidsetSumMoney(doublesumMoney){this.s
2021/6/19 17:40:46 10KB 点餐、菜单、价格、
1
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡