Leetcode 130: Surrounded Regions Posted on June 21, 2018 Given a 2D board containing ‘X’ and ‘O’ (the letter O), capture all regions surrounded by ‘X’. [Read More] Tags: Leetcode
Leetcode 129: Sum Root to Leaf Numbers Posted on June 21, 2018 Question Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. [Read More] Tags: Leetcode
Leetcode 146: LRU Cache Posted on June 20, 2018 Question Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. [Read More] Tags: Leetcode Hard Review
Leetcode 680: Valid Palindrome II Posted on June 20, 2018 Question Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. [Read More] Tags: Leetcode Hard Review
Leetcode 125: Valid Palindrome Posted on June 20, 2018 Question Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. [Read More] Tags: Leetcode
Leetcode 122: Best Time to Buy and Sell Stock II Posted on June 20, 2018 Question Say you have an array for which the ith element is the price of a given stock on day i. [Read More] Tags: Leetcode
Leetcode 121: Best Time to Buy and Sell Stock Posted on June 20, 2018 Question Say you have an array for which the ith element is the price of a given stock on day i. [Read More] Tags: Leetcode
Leetcode 120: Triangle Posted on June 20, 2018 Question Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. [Read More] Tags: Leetcode
Leetcode 119: Pascal's Triangle II Posted on June 20, 2018 Question Given a non-negative index k where k ≤ 33, return the \(k^{th}\) index row of the Pascal’s triangle. [Read More] Tags: Leetcode
Leetcode 117: Populating Next Right Pointers in Each Node II Posted on June 20, 2018 Question Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } [Read More] Tags: Leetcode
Leetcode 116: Populating Next Right Pointers in Each Node Posted on June 20, 2018 Question Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } [Read More] Tags: Leetcode
Leetcode 118: Pascal's Triangle Posted on June 17, 2018 Question Given a non-negative integer numRows, generate the first numRows of Pascal’s triangle. [Read More] Tags: Leetcode
Leetcode 114: Flatten Binary Tree to Linked List Posted on June 17, 2018 Question Given a binary tree, flatten it to a linked list in-place. [Read More] Tags: Leetcode
Leetcode 437: Path Sum III Posted on June 17, 2018 Question You are given a binary tree in which each node contains an integer value. [Read More] Tags: Leetcode
Leetcode 113: Path Sum II Posted on June 17, 2018 Question Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum. [Read More] Tags: Leetcode