文章
【leetcode】27. Remove Element 删除数组指定值的元素
1.题目Givenanarrayandavalue,removeallinstancesofthatvalueinplaceandreturnthenewlength.Donotallocateextraspaceforanother
【leetcode】26. Remove Duplicates from Sorted Array 删除有序数组的重复元素
1.题目Givenasortedarray,removetheduplicatesinplacesuchthateachelementappearonlyonceandreturnthenewlength.Donotallocateex
【leetcode】25. Reverse Nodes in k-Group 链表按K分段逆序
1.题目Givenalinkedlist,reversethenodesofalinkedlistkatatimeandreturnitsmodifiedlist.Ifthenumberofnodesisnotamultiple
【leetcode】24. Swap Nodes in Pairs 链表奇偶节点交换
1.题目Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,Given1>2>3>4,youshouldreturnthelist
【leetcode】22. Generate Parentheses 合法括号串的所有组合
1.题目Givennpairsofparentheses,writeafunctiontogenerateallcombinationsofwellformedparentheses.Forexample,givenn3,asoluti
【leetcode】21. Merge Two Sorted Lists 两个有序链表的归并有序
1.题目Mergetwosortedlinkedlistsandreturnitasanewlist.Thenewlistshouldbemadebysplicingtogetherthenodesofthefirsttwolist
【leetcode】20. Valid Parentheses 括号串的合法判断
1.题目Givenastringcontainingjustthecharacters&39;(&39;,&39;)&39;,&39;{&39;,&39;}&39;,&39;&39;and&39;&39;,determineif
【leetcode】19. Remove Nth Node From End of List 删除链表的倒数第N个元素
1.题目Givenalinkedlist,removethenthnodefromtheendoflistandreturnitshead.Forexample,Givenlinkedlist:1>2>3>4&g
【Leetcode】18. 4Sum 给定数组中的4个元素之和等于给定值的所有组合
1.题目GivenanarraySofnintegers,arethereelementsa,b,c,anddinSsuchthatabcdtarget?Findalluniquequadrupletsinthe
【Leetcode】17. Letter Combinations of a Phone Number 九键的数字串转字母串
1.题目Givenadigitstring,returnallpossiblelettercombinationsthatthenumbercouldrepresent.Amappingofdigittoletters(justlikeon
已加载文章中没有匹配内容,试试其他关键词或清空搜索。