摘要: You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note:You have to rotate the image in-place, which me 阅读全文
posted @ 2018-09-14 13:32 jasminemzy 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or *between the di 阅读全文
posted @ 2018-09-14 12:17 jasminemzy 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Given a set of words (without duplicates), find all word squares you can build from them.A sequence of words forms a valid word square if the kth row 阅读全文
posted @ 2018-09-14 01:34 jasminemzy 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 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.3. INF - Infinity means an empt 阅读全文
posted @ 2018-09-14 01:05 jasminemzy 阅读(339) 评论(1) 推荐(1) 编辑
摘要: Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.The distance between two adjacent cells is 1.Example 1: Input:0 0 阅读全文
posted @ 2018-09-14 01:04 jasminemzy 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in t 阅读全文
posted @ 2018-09-14 01:02 jasminemzy 阅读(179) 评论(0) 推荐(0) 编辑