摘要: In English, we have a concept called root, which can be followed by some other words to form another longer word - let's call this word successor. For 阅读全文
posted @ 2017-12-15 12:17 jxr041100 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are c 阅读全文
posted @ 2017-12-15 12:07 jxr041100 阅读(119) 评论(0) 推荐(0) 编辑
摘要: You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can follow an 阅读全文
posted @ 2017-12-15 11:55 jxr041100 阅读(91) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array sorted in ascending order (may contain duplicates), you need to split them into several subsequences, where each subseq 阅读全文
posted @ 2017-12-15 04:32 jxr041100 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. If the 阅读全文
posted @ 2017-12-15 03:06 jxr041100 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Print a binary tree in an m*n 2D string array following these rules: Example 1: Example 2: Example 3: 阅读全文
posted @ 2017-12-15 02:27 jxr041100 阅读(112) 评论(0) 推荐(0) 编辑