RSS

Tag Archives: Freq1

Word Break II [LeetCode 151]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: String
Algorithm: dynamic programming, DFS, backtrace, recursively
Read the rest of this entry »

 
Leave a comment

Posted by on August 25, 2014 in Leetcode

 

Tags: , , , , ,

Word Break [LeetCode 150]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: String
Algorithm: recursively, iteratively, dynamic programming, top down
Read the rest of this entry »

 
Leave a comment

Posted by on August 25, 2014 in Leetcode

 

Tags: , , , , , ,

Max Points on a Line [LeetCode 149]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: HashMap
Algorithm:
Read the rest of this entry »

 
Leave a comment

Posted by on August 25, 2014 in Leetcode

 

Tags: , ,

Evaluate Reverse Polish Notation [LeetCode 148]

Frequency: ♥                Difficulty: ♥ ♥
Data Structure: Array, Stack
Algorithm: one pass strategy
Read the rest of this entry »

 
Leave a comment

Posted by on August 25, 2014 in Leetcode

 

Tags: , , ,

Clone Graph [LeetCode 147]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: graph
Algorithm: BFS, DFS
Read the rest of this entry »

 
Leave a comment

Posted by on August 24, 2014 in Leetcode

 

Tags: , , , , ,

Reverse Words in a String [LeetCode 146]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: String
Algorithm:
Read the rest of this entry »

 
Leave a comment

Posted by on August 24, 2014 in Leetcode

 

Tags: , ,

Gas Station [LeetCode 145]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: Array
Algorithm: one pass strategy
Read the rest of this entry »

 
Leave a comment

Posted by on August 24, 2014 in Leetcode

 

Tags: , ,

Candy [LeetCode 144]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: Array
Algorithm: one pass strategy
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , ,

Sort List [LeetCode 143]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: Linked List
Algorithm: divide and conquer
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , ,

Reorder List [LeetCode 142]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: Linked List
Algorithm:
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , ,

LRU Cache [LeetCode 141]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: Double Linked List, Hash Map
Algorithm:
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , ,

Linked List Cycle II [LeetCode 140]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: Linked List
Algorithm: two pointers
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , , ,

Linked List Cycle [LeetCode 139]

Frequency: ♥                Difficulty: ♥ ♥
Data Structure: Linked List
Algorithm: two pointers
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , ,

Insertion Sort List [LeetCode 138]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: Linked List
Algorithm:
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , ,

Copy List with Random Pointer [LeetCode 137]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: Linked List
Algorithm: Hash
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , , ,

Single Number II [LeetCode 136]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: Array
Algorithm: bit manipulation
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , ,

Single Number [LeetCode 135]

Frequency: ♥                Difficulty: ♥
Data Structure: Array
Algorithm: hash, bit manipulation
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , , , , ,

Best Time to Buy and Sell Stock III [LeetCode 134]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: Array
Algorithm: divide and conquer, dynamic programming
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , ,

Best Time to Buy and Sell Stock II [LeetCode 133]

Frequency: ♥                Difficulty: ♥ ♥
Data Structure: Array
Algorithm: greedy algorithm, one pass strategy
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , ,

Best Time to Buy and Sell Stock [LeetCode 132]

Frequency: ♥                Difficulty: ♥ ♥
Data Structure: Array
Algorithm: one pass strategy, dynamic programming
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , , ,

Triangle [LeetCode 131]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: matrix
Algorithm: dynamic programming, level order traversal, top-down, bottom-up
Read the rest of this entry »

 
Leave a comment

Posted by on August 22, 2014 in Leetcode

 

Tags: , , , , , ,

Pascal’s Triangle II [LeetCode 130]

Frequency: ♥                Difficulty: ♥ ♥
Data Structure: ArrayList
Algorithm: level order traversal
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , ,

Pascal’s Triangle [LeetCode 129]

Frequency: ♥                Difficulty: ♥ ♥
Data Structure: Array
Algorithm: level order traversal
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , ,

Minimum Depth of Binary Tree [LeetCode 128]

Frequency: ♥                Difficulty: ♥ ♥
Data Structure: binary tree
Algorithm: recursively, BFS, level order traversal
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , , , , ,

Maximum Depth of Binary Tree [LeetCode 127]

Frequency: ♥                Difficulty: ♥
Data Structure: binary tree
Algorithm: recursively, BFS, level order traversal
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , , , , ,

Same Tree [LeetCode 126]

Frequency: ♥                Difficulty: ♥
Data Structure: binary tree
Algorithm: recursively
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , , ,

Unique Binary Search Trees II [LeetCode 125]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: BST
Algorithm: recursively
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , , , ,

Unique Binary Search Trees [LeetCode 124]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: binary search tree
Algorithm: dynamic programming, iteratively, recursively
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , , , , , ,

Simplify Path [LeetCode 122]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: String, Stack
Algorithm:
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , , ,

Permutation Sequence [LeetCode 121]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: Array, String
Algorithm: DFS, math
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , ,

Length of Last Word [LeetCode 120]

Frequency: ♥                Difficulty: ♥
Data Structure: String
Algorithm: one pass strategy
Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2014 in Leetcode

 

Tags: , , ,

Substring with Concatenation of All Words [LeetCode 119]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: String, HashMap, HashSet, Tier Tree
Algorithm:
Read the rest of this entry »

 
Leave a comment

Posted by on August 20, 2014 in Leetcode

 

Tags: , , , ,

3Sum Closest [LeetCode 118]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: Array
Algorithm: two pointers
Read the rest of this entry »

 
Leave a comment

Posted by on August 20, 2014 in Leetcode

 

Tags: , ,

Longest Common Prefix [LeetCode 117]

Frequency: ♥                Difficulty: ♥ ♥
Data Structure: String
Algorithm:
Read the rest of this entry »

 
Leave a comment

Posted by on August 20, 2014 in Leetcode

 

Tags: , ,

ZigZag Conversion [LeetCode 116]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: String
Algorithm: Math
Read the rest of this entry »

 
Leave a comment

Posted by on August 20, 2014 in Leetcode

 

Tags: , , ,

Binary Tree Level Order Traversal II [LeetCode 40]

Frequency: ♥                Difficulty: ♥ ♥ ♥
Data Structure: Tree
Algorithm: level traversal
Read the rest of this entry »

 
Leave a comment

Posted by on August 8, 2014 in Leetcode

 

Tags: , , ,

Longest Valid Parentheses [LeetCode 23]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥
Data Structure: String, Stack
Algorithm: one pass strategy
Read the rest of this entry »

 
Leave a comment

Posted by on July 27, 2014 in Leetcode

 

Tags: , , ,

Word Ladder II [LeetCode 18]

Frequency: ♥                Difficulty: ♥ ♥ ♥ ♥ ♥
Data Structure: String, HashMap, ArrayList, adjacent list, graph
Algorithm: BFS, DFS, backtrace, brute force
Read the rest of this entry »

 
Leave a comment

Posted by on July 25, 2014 in Leetcode

 

Tags: , , , , , , , , ,