上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页
摘要: 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) 编辑
摘要: We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to guess which number I picked.Every time you guess wrong, 阅读全文
posted @ 2018-09-12 08:02 jasminemzy 阅读(179) 评论(0) 推荐(0) 编辑
摘要: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron 阅读全文
posted @ 2018-09-12 07:59 jasminemzy 阅读(132) 评论(0) 推荐(0) 编辑
摘要: An abbreviation of a word follows the form <first letter><number><last letter>. Below are some examples of word abbreviations:a) it --> it (no abbrevi 阅读全文
posted @ 2018-09-12 07:52 jasminemzy 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.Strings consists of lowercase English letters only and the 阅读全文
posted @ 2018-09-11 13:49 jasminemzy 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Given a sorted integer array nums, where the range of elements are in the inclusive range [lower, upper], return its missing ranges.Example:Input: num 阅读全文
posted @ 2018-09-11 11:28 jasminemzy 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two 阅读全文
posted @ 2018-09-11 11:15 jasminemzy 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Suppose we abstract our file system by a string in the following manner:The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents:dir subdir1 su 阅读全文
posted @ 2018-09-10 10:29 jasminemzy 阅读(168) 评论(0) 推荐(0) 编辑
摘要: The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu 阅读全文
posted @ 2018-09-10 04:12 jasminemzy 阅读(122) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页