随笔分类 -  leetcode题解

摘要:题目连接 https://leetcode.com/problems/word-ladder-ii/ Word Ladder II Description Given two words (beginWord and endWord), and a dictionary's word list, f 阅读全文
posted @ 2016-06-30 21:55 GadyPu 阅读(474) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/valid-perfect-square/ Valid Perfect Square Description Given a positive integer num, write a function which returns 阅读全文
posted @ 2016-06-30 21:14 GadyPu 阅读(233) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/reconstruct-itinerary/ Reconstruct Itinerary Description Given a list of airline tickets represented by pairs of de 阅读全文
posted @ 2016-06-23 23:09 GadyPu 阅读(403) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/invert-binary-tree/ Invert Binary Tree Description Invert a binary tree. to 阅读全文
posted @ 2016-06-23 22:44 GadyPu 阅读(218) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/ Convert Sorted List to Binary Search Tree Description Given a singly lin 阅读全文
posted @ 2016-06-23 22:36 GadyPu 阅读(180) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/ Convert Sorted Array to Binary Search Tree Description Given an array w 阅读全文
posted @ 2016-06-23 22:29 GadyPu 阅读(187) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/4sum/ 4Sum Description Given an array $S$ of n integers, are there elements $a, b, c,$ and d in $S$ such that $a + 阅读全文
posted @ 2016-06-22 21:57 GadyPu 阅读(261) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/simplify-path/ Simplify Path Description Given an absolute path for a file (Unix-style), simplify it. For example,p 阅读全文
posted @ 2016-06-19 22:25 GadyPu 阅读(270) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/regular-expression-matching/ Regular Expression Matching Description Implement regular expression matching with sup 阅读全文
posted @ 2016-06-19 22:07 GadyPu 阅读(185) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/substring-with-concatenation-of-all-words/ Substring with Concatenation of All Words Description You are given a st 阅读全文
posted @ 2016-06-19 22:00 GadyPu 阅读(192) 评论(0) 推荐(0)
摘要:题目连接 https://leetcode.com/problems/design-twitter Design Twitte Description Design a simplified version of Twitter where users can post tweets, follow 阅读全文
posted @ 2016-06-12 19:41 GadyPu 阅读(298) 评论(0) 推荐(0)
摘要:题目连接https://leetcode.com/problems/lru-cache/LRU CacheDescriptionDesign and implement a data structure for Least Recently Used (LRU) cache. It should s... 阅读全文
posted @ 2015-12-11 21:30 GadyPu 阅读(266) 评论(0) 推荐(0)
摘要:题目连接https://leetcode.com/problems/3sum/3SumDescriptionGiven an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find al... 阅读全文
posted @ 2015-12-11 21:15 GadyPu 阅读(228) 评论(0) 推荐(0)
摘要:题目连接https://leetcode.com/problems/letter-combinations-of-a-phone-number/Letter Combinations of a Phone NumberDescriptionGiven a digit string, return a... 阅读全文
posted @ 2015-12-11 21:08 GadyPu 阅读(208) 评论(0) 推荐(0)
摘要:题目连接https://leetcode.com/problems/remove-nth-node-from-end-of-list/Remove Nth Node From End of ListDescriptionGiven a linked list, remove the $n^{th}$... 阅读全文
posted @ 2015-12-11 21:05 GadyPu 阅读(153) 评论(0) 推荐(0)
摘要:题目连接https://leetcode.com/problems/valid-parentheses/Valid ParenthesesDescriptionGiven a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ ... 阅读全文
posted @ 2015-12-11 21:02 GadyPu 阅读(185) 评论(0) 推荐(0)
摘要:题目连接https://leetcode.com/problems/merge-k-sorted-lists/Merge k Sorted ListsDescriptionMerge k sorted linked lists and return it as one sorted list. An... 阅读全文
posted @ 2015-12-11 20:58 GadyPu 阅读(179) 评论(0) 推荐(0)
摘要:题目连接https://leetcode.com/problems/remove-element/Remove ElementDescriptionGiven an array and a value, remove all instances of that value in place and ... 阅读全文
posted @ 2015-12-11 20:55 GadyPu 阅读(153) 评论(0) 推荐(0)
摘要:题目连接https://leetcode.com/problems/implement-strstr/Implement strStr()DescriptionImplement strStr().Returns the index of the first occurrence of needle... 阅读全文
posted @ 2015-12-11 20:53 GadyPu 阅读(133) 评论(0) 推荐(0)
摘要:题目连接https://leetcode.com/problems/next-permutation/Next PermutationDescriptionImplement next permutation, which rearranges numbers into the lexicograp... 阅读全文
posted @ 2015-12-11 20:50 GadyPu 阅读(105) 评论(0) 推荐(0)