文章
[Leetcode] Course Schedule 课程计划
CourseScheduleI<blockquoteThereareatotalofncoursesyouhavetotake,labeledfrom0ton1.<pSomecoursesmayhaveprerequisites,f
[Leetcode] Largest Number 最大整数
LargestNumber<blockquote<pGivenalistofnonnegativeintegers,arrangethemsuchthattheyformthelargestnumber.</p<pForexample,g
[Leetcode] Decode Ways 解码方式
DecodeWays最新更新请见:https://yanjia.me/zh/2019/02/...(https://link.segmentfault.com/?encdyscLbc0JpXATX4qZ93PLA%3D%3D.GxRoIdGFIjZTyFyJZ%2BX
[Leetcode] Valid Anagram 验证变形词
ValidAnagram<blockquote<pGiventwostringssandt,writeafunctiontodetermineiftisananagramofs.</p<pForexample,s&34;ana
[Leetcode] Longest Consecutive Sequence 最长连续数列
LongestConsecutiveSequence<blockquote<pGivenanunsortedarrayofintegers,findthelengthofthelongestconsecutiveelementssequence.<
[Leetcode] Unique Binary Search Trees 唯一二叉搜索树
UniqueBinarySearchTreesI&&II解法请见:https://yanjia.li/zh/2019/02/...(https://link.segmentfault.com/?encqiFYubSYI9OtgCXb%2Bgg
[Leetcode] Search in Rotated Sorted Array 搜索旋转有序数组
SearchinRotatedSortedArrayI<blockquoteSupposeasortedarrayisrotatedatsomepivotunknowntoyoubeforehand.<p(i.e.,0124567m
[Leetcode] House Robber 打家劫舍
HouseRobberI<blockquote<pYouareaprofessionalrobberplanningtorobhousesalongastreet.Eachhousehasacertainamountofmoneysta
[Leetcode] Implement Stack using Queues 用队列实现栈
双队列法复杂度时间O(N)空间O(N)思路和ImplementQueueusingStack类似,我们也可以用两个队列来模拟栈的操作。当push时,我们将数字offer进非空的队列就行了。当pop时,因为要拿的是队列最后一个数,我们先将它前
[Leetcode] Compare Version Numbers 比较版本号
CompareVersionNumbers<blockquote<pComparetwoversionnumbersversion1andversion2.Ifversion1>version2return1,ifversion1<
已加载文章中没有匹配内容,试试其他关键词或清空搜索。