文章
[LeetCode] Remove Duplicates from Sorted List
RemoveDuplicatesfromSortedList<blockquote<pGivenasortedlinkedlist,deleteallduplicatessuchthateachelementappearonlyonce.</p
leetcode22. Generate Parentheses
题目要求<pre<codeGivennpairsofparentheses,writeafunctiontogenerateallcombinationsofwellformedparentheses.Forexample,givenn
股票交易系列 (Eazy - Hard)
前言自己之前也是在简书写文章,后来发现了<aSegmentFault</a,感觉挺不错的,写作和阅读方面比简书要方便得多,所以决定来试一下,之前也写过类似OJ专题系列文章,从今天开始准备迁移过来,好了下面开始正文LeetCode中股票系列问题,前两题较容易,后两
[LeetCode] Remove Element
RemoveElement<blockquote<pGivenanarrayandavalue,removeallinstancesofthatvalueinplaceandreturnthenewlength.</p<pDonot
[LeetCode] Remove Duplicates from Sorted Array
RemoveDuplicatesfromSortedArray<blockquote<pGivenasortedarray,removetheduplicatesinplacesuchthateachelementappearonlyonce
[LeetCode] Remove Nth Node From End of List
RemoveNthNodeFromEndofList<blockquote<pGivenalinkedlist,removethenthnodefromtheendoflistandreturnitshead.</p<pFore
leetcode30 Substring with Concatenation of All Words
题目要求<pre<codeYouaregivenastring,s,andalistofwords,words,thatareallofthesamelength.Findallstartingindicesofsubstring(s
leetcode 66 Plus One
题目详情<blockquoteGivenanonnegativeintegerrepresentedasanonemptyarrayofdigits,plusonetotheinteger.<br/Youmayassumetheintege
Sorting
BubbleSortBubbleSortrequiresn1passtosortanarrayofnelements.Ineachpasseveryadjacentelementsaiandai1iscomparedand
leetcode _58 length of the last word
问题很简单,就是给你一个字符串,你求出这个字符串中所包含的最后一个单词的长度虽然问题很简单,但是最开始的方向不对,其实整个问题可以直接通过“数字”来解决而字符串中的单词内容并没有什么关系先求出去掉首位空格后,找到最后一次出现空格(即出现最后一个词的分割)的index,然后用总长度减去前面的
已加载文章中没有匹配内容,试试其他关键词或清空搜索。