上一页 1 2 3 4 5 6 7 8 9 ··· 33 下一页
摘要: Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen 阅读全文
posted @ 2016-08-05 01:41 Hygeia 阅读(211) 评论(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-08-03 06:56 Hygeia 阅读(145) 评论(0) 推荐(0) 编辑
摘要: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every 阅读全文
posted @ 2016-08-03 06:11 Hygeia 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Design a hit counter which counts the number of hits received in the past 5 minutes. Each function accepts a timestamp parameter (in seconds granulari 阅读全文
posted @ 2016-08-03 01:32 Hygeia 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative number represented as a singly linked list of digits, plus one to the number. The digits are stored such that the most significan 阅读全文
posted @ 2016-08-03 00:44 Hygeia 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Assume you have an array of length n initialized with all 0's and are given k update operations. Each operation is represented as a triplet: [startInd 阅读全文
posted @ 2016-07-27 05:06 Hygeia 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. Example:Given bi 阅读全文
posted @ 2016-07-26 13:10 Hygeia 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
posted @ 2016-07-26 05:56 Hygeia 阅读(114) 评论(0) 推荐(0) 编辑
摘要: http://www.java2s.com/Tutorials/Java/Java_Language/Basic/Java_double_type.htm 阅读全文
posted @ 2016-07-25 12:32 Hygeia 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: Hide Company Tags Hide Company Ta 阅读全文
posted @ 2016-07-25 11:59 Hygeia 阅读(188) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 33 下一页