Ryan’s leetcode Blog
2015年6月30日星期二
Word Break II leetcode
›
Given a string s and a dictionary of words dict , add spaces in s to construct a sentence where each word is a valid dictionary word. ...
Text Justification leetcode
›
Given an array of words and a length L , format the text such that each line has exactly L characters and is fully (left and right) just...
Surrounded Regions leetcode
›
Given a 2D board containing 'X' and 'O' , capture all regions surrounded by 'X' . A region is captured by fli...
Word Search leetcode
›
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell,...
Set Matrix Zeroes leetcode
›
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. "这是一个矩阵操作的题目,目标很明确,就是如果矩阵如果有元素为0,就把...
Spiral Matrix II leetcode
›
Given an integer n , generate a square matrix filled with elements from 1 to n 2 in spiral order. For example, Given n = 3 , You ...
Spiral Matrix leetcode
›
Given a matrix of m x n elements ( m rows, n columns), return all elements of the matrix in spiral order. For example, Given the ...
‹
›
主页
查看网络版本