上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 33 下一页
摘要: 题目: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stoppin 阅读全文
posted @ 2015-05-10 06:37 YRB 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32- 阅读全文
posted @ 2015-05-10 06:28 YRB 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 题目: Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), r 阅读全文
posted @ 2015-05-10 06:16 YRB 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 题目: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. 阅读全文
posted @ 2015-05-10 06:03 YRB 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 题目:链接:题解:测试:Reference: 阅读全文
posted @ 2015-05-10 05:54 YRB 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 题目: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful 阅读全文
posted @ 2015-05-10 05:47 YRB 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters. The input string does not contain 阅读全文
posted @ 2015-05-10 05:41 YRB 阅读(538) 评论(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 form 阅读全文
posted @ 2015-05-10 05:39 YRB 阅读(507) 评论(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 i... 阅读全文
posted @ 2015-05-10 03:54 YRB 阅读(571) 评论(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 t 阅读全文
posted @ 2015-05-10 03:49 YRB 阅读(663) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 33 下一页