上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: Given the running logs of n functions that are executed in a nonpreemptive single threaded CPU, find the exclusive time of these functions. Each funct 阅读全文
posted @ 2017-12-16 14:39 jxr041100 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: Construct the maximum tree by the given array a 阅读全文
posted @ 2017-12-14 08:54 jxr041100 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Given a number n. You have to 阅读全文
posted @ 2017-12-14 08:43 jxr041100 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Given a number n. You have to 阅读全文
posted @ 2017-12-14 08:40 jxr041100 阅读(258) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页