上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页
摘要: You may serialize the following tree: 1 / \ 2 3 / \ 4 5 as "[1,2,3,null,null,4,5]" /** * Definition for a binary tree node. * public class TreeNode { 阅读全文
posted @ 2020-02-13 08:06 xuan_abc 阅读(112) 评论(0) 推荐(0)
摘要: Example 1: Input: secret = "1807", guess = "7810" Output: "1A3B" Explanation: 1 bull and 3 cows. The bull is 8, the cows are 0, 1 and 7. Example 2: In 阅读全文
posted @ 2020-02-12 21:30 xuan_abc 阅读(120) 评论(0) 推荐(0)
摘要: Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce" then 阅读全文
posted @ 2020-02-12 10:33 xuan_abc 阅读(106) 评论(0) 推荐(0)
摘要: Given an input string, reverse the string word by word. Example 1: Input: "the sky is blue" Output: "blue is sky the" Example 2: Input: " hello world! 阅读全文
posted @ 2020-02-11 21:38 xuan_abc 阅读(147) 评论(0) 推荐(0)
摘要: From any string, we can form a subsequence of that string by deleting some number of characters (possibly no deletions). Given two strings source and  阅读全文
posted @ 2020-02-11 12:26 xuan_abc 阅读(154) 评论(0) 推荐(0)
摘要: Example: Input: S = "heeellooo" words = ["hello", "hi", "helo"] Output: 1 Explanation: We can extend "e" and "o" in the word "hello" to get "heeellooo 阅读全文
posted @ 2020-02-11 11:40 xuan_abc 阅读(145) 评论(0) 推荐(0)
摘要: In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the i-th domino. (A domino is a tile with two numbers from 1 to 6 - one on 阅读全文
posted @ 2020-02-11 10:29 xuan_abc 阅读(101) 评论(0) 推荐(0)
摘要: Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Input: 123 Output: " 阅读全文
posted @ 2020-02-10 05:35 xuan_abc 阅读(156) 评论(0) 推荐(0)
摘要: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the 阅读全文
posted @ 2020-02-10 04:13 xuan_abc 阅读(144) 评论(0) 推荐(0)
摘要: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John 阅读全文
posted @ 2020-02-05 21:44 xuan_abc 阅读(102) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页