Surrounded Regions
Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.
该标签下的全部文章。
Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.
In the classic problem of the Towers of Hanoi, you have 3 towers and N disks of different sizes which can slid
You are given an array of n non-negative integers. Each value means the height of a histogram.
How many paths are there for a robot to go from (0,0) to (x,y), supposing it can only move down and move right
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequen