摘要: Description: Your friend is typing his name into a keyboard. Sometimes, when typing a character c, the key might get long pressed, and the character w 阅读全文
posted @ 2019-08-22 22:25 CodingYM 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Description: Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell be 阅读全文
posted @ 2019-08-22 18:53 CodingYM 阅读(363) 评论(0) 推荐(0) 编辑
摘要: Description: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 阅读全文
posted @ 2019-08-22 18:14 CodingYM 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Description: Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string. Ex 阅读全文
posted @ 2019-08-22 17:57 CodingYM 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Description: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one mo 阅读全文
posted @ 2019-08-22 17:00 CodingYM 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Description: X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit m 阅读全文
posted @ 2019-08-22 16:45 CodingYM 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Description: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be righ 阅读全文
posted @ 2019-08-22 15:38 CodingYM 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Description: An array is monotonic if it is either monotone increasing or monotone decreasing. An array A is monotone increasing if for all i <= j, A[ 阅读全文
posted @ 2019-08-22 15:02 CodingYM 阅读(89) 评论(0) 推荐(0) 编辑
摘要: Description: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathem 阅读全文
posted @ 2019-08-22 13:37 CodingYM 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Description: Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Each of t 阅读全文
posted @ 2019-08-22 11:55 CodingYM 阅读(235) 评论(0) 推荐(0) 编辑