原创 [LeetCode302]Smallest Rectangle Enclosing Black Pixels
Hard .. An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The black pixels ar
原创 [LeetCode305]Number of Islands II
Hard.. A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which
原创 [LeetCode187]Repeated DNA Sequences
All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying
原创 [LeetCode212] Word Search II
HARD Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be construc
原创 [LeetCode288]Unique Word Abbreviation
An abbreviation of a word follows the form <first letter><number><last letter>. Below are some examples of word abbrevi
原创 [LeetCode202]Happy Number
Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: S
原创 [LeetCode294]Flip Game II
You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and
原创 [LeetCode298]Binary Tree Longest Consecutive Sequence
Given a binary tree, find the length of the longest consecutive sequence path. The path refers to any sequence of node
原创 [LeetCode286]Walls and Gates
You are given a m x n 2D grid initialized with these three possible values. 1.-1 - A wall or an obstacle. 2.0 - A gate