上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页
摘要: Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For exa 阅读全文
posted @ 2017-11-29 06:07 逸朵 阅读(100) 评论(0) 推荐(0)
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2017-11-29 05:58 逸朵 阅读(95) 评论(0) 推荐(0)
摘要: Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed n 阅读全文
posted @ 2017-11-29 05:33 逸朵 阅读(124) 评论(0) 推荐(0)
摘要: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 阅读全文
posted @ 2017-11-29 01:43 逸朵 阅读(131) 评论(0) 推荐(0)
摘要: Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the n 阅读全文
posted @ 2017-11-29 01:24 逸朵 阅读(112) 评论(0) 推荐(0)
摘要: 最近正在读GFS paper,准备读完记录一下心得。未完待续。 这篇中文的导读不错,值得看。 http://www.importnew.com/3491.html 阅读全文
posted @ 2017-11-27 12:15 逸朵 阅读(161) 评论(0) 推荐(0)
摘要: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 阅读全文
posted @ 2017-11-23 08:20 逸朵 阅读(133) 评论(0) 推荐(0)
摘要: Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assum 阅读全文
posted @ 2017-11-23 08:08 逸朵 阅读(152) 评论(0) 推荐(0)
摘要: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov 阅读全文
posted @ 2017-11-23 05:26 逸朵 阅读(102) 评论(0) 推荐(0)
摘要: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find 阅读全文
posted @ 2017-11-23 04:59 逸朵 阅读(137) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页