LeetCode – Clone Graph

Given a reference of a node in a connected Connected_graph undirected graph, return a deep copy

2019-08-09 · 2 分钟

LeetCode – Evaluate Reverse Polish Notation

Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, , /. Each operand may be an integer or another expression.…

2019-08-04 · 2 分钟

LeetCode – Daily Temperatures

Daily Temperatures

2019-07-23 · 1 分钟

LeetCode – Valid Parentheses

Given a string containing just the characters '', '', '{', '}', '' and '', determine if the input string is valid

2019-07-19 · 1 分钟

LeetCode – Min Stack

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. - push(x) -- Push element x onto stack. - pop() -- Removes…

2019-07-10 · 1 分钟

LeetCode – Perfect Squares

Given a positive integer _n_, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to _n_. Example 1: Input: _n_ = Output…

2019-07-02 · 3 分钟

LeetCode – Open the Lock

You have a lock in front of you with circular wheels. Each wheel has slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'. The wheels can rotate freely and…

2019-06-23 · 2 分钟

LeetCode – Number of Islands

Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands…

2019-06-17 · 2 分钟

LeetCode – Design Circular Queue

Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (First In…

2019-06-14 · 2 分钟

LeetCode – Rotate List

Given a linked list, rotate the list to the right by _k_ places, where _k_ is non-negative. Example 1: Example 2: Input: 0->1->2->NULL, k = Output: 2->0->1->…

2019-06-03 · 1 分钟