随笔分类 - 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
阅读全文
摘要:题目连接 https://leetcode.com/problems/valid-perfect-square/ Valid Perfect Square Description Given a positive integer num, write a function which returns
阅读全文
摘要:题目连接 https://leetcode.com/problems/reconstruct-itinerary/ Reconstruct Itinerary Description Given a list of airline tickets represented by pairs of de
阅读全文
摘要:题目连接 https://leetcode.com/problems/invert-binary-tree/ Invert Binary Tree Description Invert a binary tree. to
阅读全文
摘要:题目连接 https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/ Convert Sorted List to Binary Search Tree Description Given a singly lin
阅读全文
摘要:题目连接 https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/ Convert Sorted Array to Binary Search Tree Description Given an array w
阅读全文
摘要:题目连接 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 +
阅读全文
摘要:题目连接 https://leetcode.com/problems/simplify-path/ Simplify Path Description Given an absolute path for a file (Unix-style), simplify it. For example,p
阅读全文
摘要:题目连接 https://leetcode.com/problems/regular-expression-matching/ Regular Expression Matching Description Implement regular expression matching with sup
阅读全文
摘要:题目连接 https://leetcode.com/problems/substring-with-concatenation-of-all-words/ Substring with Concatenation of All Words Description You are given a st
阅读全文
摘要:题目连接 https://leetcode.com/problems/design-twitter Design Twitte Description Design a simplified version of Twitter where users can post tweets, follow
阅读全文
摘要:题目连接https://leetcode.com/problems/lru-cache/LRU CacheDescriptionDesign and implement a data structure for Least Recently Used (LRU) cache. It should s...
阅读全文
摘要:题目连接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...
阅读全文
摘要:题目连接https://leetcode.com/problems/letter-combinations-of-a-phone-number/Letter Combinations of a Phone NumberDescriptionGiven a digit string, return a...
阅读全文
摘要:题目连接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}$...
阅读全文
摘要:题目连接https://leetcode.com/problems/valid-parentheses/Valid ParenthesesDescriptionGiven a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ ...
阅读全文
摘要:题目连接https://leetcode.com/problems/merge-k-sorted-lists/Merge k Sorted ListsDescriptionMerge k sorted linked lists and return it as one sorted list. An...
阅读全文
摘要:题目连接https://leetcode.com/problems/remove-element/Remove ElementDescriptionGiven an array and a value, remove all instances of that value in place and ...
阅读全文
摘要:题目连接https://leetcode.com/problems/implement-strstr/Implement strStr()DescriptionImplement strStr().Returns the index of the first occurrence of needle...
阅读全文
摘要:题目连接https://leetcode.com/problems/next-permutation/Next PermutationDescriptionImplement next permutation, which rearranges numbers into the lexicograp...
阅读全文

浙公网安备 33010602011771号