文章
【leetcode】30. Substring with Concatenation of All Words 精确匹配的子串集
1.题目Youaregivenastring,s,andalistofwords,words,thatareallofthesamelength.Findallstartingindicesofsubstring(s)insthat
【leetcode】29. Divide Two Integers 不能使用乘除法的整数除法
1.题目Dividetwointegerswithoutusingmultiplication,divisionandmodoperator.Ifitisoverflow,returnMAX_INT.2.思路这题的异常考虑点的坑很多。
【leetcode】28. Implement strStr() 字符串匹配KMP BM
1.题目ImplementstrStr().Returnstheindexofthefirstoccurrenceofneedleinhaystack,or1ifneedleisnotpartofhaystack.2.思路
【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
已加载文章中没有匹配内容,试试其他关键词或清空搜索。