上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 40 下一页
摘要: You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu 阅读全文
posted @ 2016-10-15 06:07 amazingzoe 阅读(209) 评论(0) 推荐(0)
摘要: Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example, MovingAverage m = new M 阅读全文
posted @ 2016-10-15 05:57 amazingzoe 阅读(168) 评论(0) 推荐(0)
摘要: Design a logger system that receive stream of messages along with its timestamps, each message should be printed if and only if it is not printed in t 阅读全文
posted @ 2016-10-14 05:51 amazingzoe 阅读(137) 评论(0) 推荐(0)
摘要: Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL 阅读全文
posted @ 2016-10-13 03:10 amazingzoe 阅读(130) 评论(0) 推荐(0)
摘要: Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list -- w 阅读全文
posted @ 2016-10-11 05:31 amazingzoe 阅读(180) 评论(0) 推荐(0)
摘要: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For 阅读全文
posted @ 2016-10-10 08:05 amazingzoe 阅读(120) 评论(0) 推荐(0)
摘要: Description: Count the number of prime numbers less than a non-negative number, n. 阅读全文
posted @ 2016-10-04 05:51 amazingzoe 阅读(108) 评论(0) 推荐(0)
摘要: 1. Excel Sheet Column Number Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding c 阅读全文
posted @ 2016-10-04 05:35 amazingzoe 阅读(150) 评论(0) 推荐(0)
摘要: Invert a binary tree. to Trivia:This problem was inspired by this original tweet by Max Howell: Runtime: 0ms 阅读全文
posted @ 2016-10-01 06:55 amazingzoe 阅读(114) 评论(0) 推荐(0)
摘要: Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 1 阅读全文
posted @ 2016-09-30 00:27 amazingzoe 阅读(297) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 40 下一页