11 2015 档案
摘要:1. TitleMin Stack2. Http addresshttps://leetcode.com/problems/min-stack/3. The questionDesign a stack that supports push, pop, top, and retrieving the...
阅读全文
摘要:1. TitleMinimum Depth of Binary Tree2. Http addresshttps://leetcode.com/problems/minimum-depth-of-binary-tree/3. The questionGiven a binary tree, find...
阅读全文
摘要:1. TitleMerge Intervals2. Http addresshttps://leetcode.com/problems/merge-intervals/3. The questionGiven a collection of intervals, merge all overlapp...
阅读全文
摘要:1. TitleMaximum Subarray2. Http addresshttps://leetcode.com/problems/maximum-subarray/3. The questionFind the contiguous subarray within an array (con...
阅读全文
摘要:1. TitleMaximum Product Subarray2. Http addresshttps://leetcode.com/problems/maximum-product-subarray/3. The questionFind the contiguous subarray with...
阅读全文
摘要:1. TitleMajority Element2. Http addresshttps://leetcode.com/problems/majority-element/3. The questionGiven an array of sizen, find the majority elemen...
阅读全文
摘要:1. TitleLongest Palindromic Substring2. Http addresshttps://leetcode.com/problems/longest-palindromic-substring/3. The questionGiven a stringS, find t...
阅读全文
摘要:1. TitleLinked List Cycle II2. Http addresshttps://leetcode.com/problems/linked-list-cycle-ii/3. The questionGiven a linked list, return the node wher...
阅读全文
摘要:1. TitleIntersection of Two Linked Lists2. Http addresshttps://leetcode.com/problems/intersection-of-two-linked-lists/3. The questionWrite a program t...
阅读全文
摘要:1. TitleInsertion Sort List2. Http addresshttps://leetcode.com/problems/insertion-sort-list/3. The questionSort a linked list using insertion sort.4. ...
阅读全文
摘要:1. TitleDelete Node in a Linked List2. Http addresshttps://leetcode.com/problems/delete-node-in-a-linked-list/3. The questionWrite a function to delet...
阅读全文
摘要:1. TitleCopy List with Random Pointer2. Http addresshttps://leetcode.com/problems/copy-list-with-random-pointer/3. The questionA linked list is given ...
阅读全文
摘要:1. TitleContains Duplicate2. Http addresshttps://leetcode.com/problems/contains-duplicate/3. The questionGiven an array of integers, find if the array...
阅读全文
摘要:1. TitleCombination Sum III2. Http addresshttps://leetcode.com/problems/combination-sum-iii/3. The questionFind all possible combinations ofknumbers t...
阅读全文
摘要:1. TitleCombination Sum II2. Http addresshttps://leetcode.com/problems/combination-sum-ii/3. The questionGiven a collection of candidate numbers (C) a...
阅读全文
摘要:1. TitleBinary Tree Right Side View2. Http addresshttps://leetcode.com/problems/binary-tree-right-side-view/3. The questionGiven a binary tree, imagin...
阅读全文
摘要:1. TitleBinary Tree Maximum Path Sum2. Http addresshttps://leetcode.com/problems/binary-tree-maximum-path-sum/3. The questionGiven a binary tree, find...
阅读全文
摘要:1. TitleCombinations2. Http addresshttps://leetcode.com/problems/combinations/3. The questionGiven two integersnandk, return all possible combinations...
阅读全文
摘要:1. TitleMin Stack2. Http addresshttps://leetcode.com/problems/min-stack/ 1 import java.util.*; 2 public class MinStack { 3 4 // Accepted 5 p...
阅读全文
摘要:1. TitleNumber of Islands2. Http addresshttps://leetcode.com/problems/palindrome-linked-list/3. The questionGiven a 2d grid map of '1's (land) and '0'...
阅读全文
摘要:1. TitlePalindrome Linked List2. Http addresshttps://leetcode.com/problems/palindrome-linked-list/3. The questionGiven a singly linked list, determine...
阅读全文
摘要:1. TitlePalindrome Partitioning II2. Http addresshttps://leetcode.com/problems/palindrome-partitioning-ii/3. The questionGiven a strings, partitionssu...
阅读全文
摘要:1. TitlePalindrome Partitioning2. Http addresshttps://leetcode.com/problems/palindrome-partitioning/3. The questionGiven a strings, partitionssuch tha...
阅读全文
摘要:1. TitlePath Sum II2. Http addresshttps://leetcode.com/problems/path-sum-ii/3. The questionGiven a binary tree and a sum, find all root-to-leaf paths ...
阅读全文
摘要:1. TitlePermutation Sequence2. Http addresshttps://leetcode.com/problems/permutation-sequence/3. The questionThe set[1,2,3,…,n]contains a total ofn! u...
阅读全文
摘要:1. TitlePermutations2. Http addresshttps://leetcode.com/problems/permutations/3. The questionGiven a collection of numbers, return all possible permut...
阅读全文
摘要:1. TitlePopulating Next Right Pointers in Each Node2. Http addresshttps://leetcode.com/problems/populating-next-right-pointers-in-each-node/3. The que...
阅读全文
摘要:1. TitleRecover Binary Search Tree2. Http addresshttps://leetcode.com/problems/recover-binary-search-tree/3. The questionTwo elements of a binary sear...
阅读全文
摘要:1. TitleRepeated DNA Sequences2. Http addresshttps://leetcode.com/problems/repeated-dna-sequences/3. The questionAll DNA is composed of a series of nu...
阅读全文
摘要:1. TitleReverse Linked List II2. Http addresshttps://leetcode.com/problems/reverse-linked-list-ii/3. The questionReverse a linked list from positionmt...
阅读全文
摘要:1. TitleShortest Palindrome2. Http addresshttps://leetcode.com/problems/shortest-palindrome/3. The questionGiven a string S, you are allowed to conver...
阅读全文
摘要:1. TitleSingle Number2. Http addresshttps://leetcode.com/problems/single-number/3. The questionGiven an array of integers, every element appearstwicee...
阅读全文
摘要:1. TitleSort Colors2. Http addresshttps://leetcode.com/problems/sort-colors/3. The questionGiven an array withnobjects colored red, white or blue, sor...
阅读全文
摘要:1. TitleSubsets II2. Http addresshttps://leetcode.com/problems/subsets-ii/3. The questionGiven a collection of integers that might contain duplicates,...
阅读全文
摘要:1. TitleSum Root to Leaf Numbers2. Http addresshttps://leetcode.com/problems/sum-root-to-leaf-numbers/3. The questionGiven a binary tree containing di...
阅读全文
摘要:1. TitleSummary Ranges2. Http addresshttps://leetcode.com/problems/summary-ranges/3. The questionGiven a sorted integer array without duplicates, retu...
阅读全文
摘要:1. TitleTwo Sum2. Http addresshttps://leetcode.com/problems/two-sum/3. The questionGiven an array of integers, find two numbers such that they add up ...
阅读全文
摘要:1. TitleUnique Binary Search Trees2. Http addresshttps://leetcode.com/problems/unique-binary-search-trees/3. The questionGivenn, how many structurally...
阅读全文
摘要:1. TitleWord Ladder2. Http addresshttps://leetcode.com/problems/word-ladder/3. The questionGiven two words (beginWordandendWord), and a dictionary's w...
阅读全文
摘要:1. TitleWord Search2. Http addresshttps://leetcode.com/problems/word-search/3. The questionGiven a 2D board and a word, find if the word exists in the...
阅读全文
摘要:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
阅读全文
摘要:You are playing the followingBulls and Cowsgame with your friend: You write a 4-digit secret number and ask your friend to guess it, each time your fr...
阅读全文
浙公网安备 33010602011771号