Fork me on GitHub
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 37 下一页
摘要: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou 阅读全文
posted @ 2017-07-25 17:35 hellowOOOrld 阅读(188) 评论(0) 推荐(0)
摘要: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so tha 阅读全文
posted @ 2017-07-25 16:16 hellowOOOrld 阅读(306) 评论(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-07-24 16:33 hellowOOOrld 阅读(500) 评论(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-07-24 15:34 hellowOOOrld 阅读(429) 评论(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-07-23 13:26 hellowOOOrld 阅读(727) 评论(0) 推荐(0)
摘要: The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another n 阅读全文
posted @ 2017-07-23 12:45 hellowOOOrld 阅读(386) 评论(0) 推荐(0)
摘要: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a 阅读全文
posted @ 2017-07-18 21:01 hellowOOOrld 阅读(159) 评论(0) 推荐(0)
摘要: 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-07-16 19:17 hellowOOOrld 阅读(336) 评论(0) 推荐(0)
摘要: Given an array consisting of n integers, find the contiguous subarray whose length is greater than or equal to k that has the maximum average value. A 阅读全文
posted @ 2017-07-16 13:50 hellowOOOrld 阅读(779) 评论(0) 推荐(0)
摘要: Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ? s. If there isn't 阅读全文
posted @ 2017-07-16 12:14 hellowOOOrld 阅读(217) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 37 下一页