摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 % 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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[ 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文