文章
[Leetcode] Longest Substring Without Repeating Characters 最长唯一子串
LongestSubstringWithoutRepeatingCharacters最新更新解法:https://yanjia.me/zh/2018/12/...(https://link.segmentfault.com/?encF%2F1LTsJVkKUOz%
[Leetcode] Add Two Numbers 链表数相加
AddTwoNumbers<blockquoteYouaregiventwolinkedlistsrepresentingtwononnegativenumbers.Thedigitsarestoredinreverseorderandeac
[Leetcode] Two Sum 两数和
TwoSum<blockquoteGivenanarrayofintegers,findtwonumberssuchthattheyadduptoaspecifictargetnumber.<pThefunctiontwoSumshould
[LeetCode刷题日记] Remove Duplicates from Sorted Array
<blockquote<pGivenasortedarray,removetheduplicatesinplacesuchthateachelementappearonlyonceandreturnthenewlength.<br/Dono
[LeetCode刷题日记] Summary Ranges
<blockquote<pGivenasortedintegerarraywithoutduplicates,returnthesummaryofitsranges.</p</blockquote<blockquote<pForexample
Dungeon Game@LeetCode
DungeonGame(https://leetcode.com/problems/dungeongame/)典型的动态规划题。维护一个二维数组<codedungeon</code,<codedungeonij</code表示从第<codei</code行第<
Maximum Gap@LeetCode
MaximumGap(https://leetcode.com/problems/maximumgap/)要求连续元素的最大差值,那必然要排序,但是又要求在<codeO(n)</code的复杂度内完成,自然就想到了桶排序。维护<codeleft</code和<coder
Find Minimum in Rotated Sorted Array I II@LeetCode
FindMinimuminRotatedSortedArray(https://leetcode.com/problems/findminimuminrotatedsortedarray/)其实直接遍历也是可以也可以<codeAC</code,但是更加优化的解
Max Points on a Line@LeetCode
MaxPointsonaLine(https://leetcode.com/problems/maxpointsonaline/)题目本身不难,一次<codeAC</code可能有点困难,因为要考虑的东西还是挺多的。两层循环,外层遍历所以点,内层遍历外层点之后的所
LRU Cache@LeetCode
LRUCache(https://leetcode.com/problems/lrucache/)数据结构用列表。<codeget()</code和<codeset()</code方法就不多讲,重要的是遇到下两种情况:元素被访问过,要将其放到列表头部,实现函数:
已加载文章中没有匹配内容,试试其他关键词或清空搜索。