Jump Game II Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represen ...
分类:
其他好文 时间:
2016-05-20 13:12:38
阅读次数:
151
Rotate List Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return ...
分类:
其他好文 时间:
2016-05-20 13:09:26
阅读次数:
132
一、前言 做这题有个小收获,关于Digital root的解法,有个极方便的小公式: 二、题258 Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only ...
分类:
编程语言 时间:
2016-05-19 19:24:45
阅读次数:
1224
直方图上的最大矩形。这道题很有意思。研究了半天才研究出来是个什么意思。 首先看题目: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, fin ...
分类:
其他好文 时间:
2016-05-18 15:59:34
阅读次数:
183
338. Counting Bits --20160518 338. Counting Bits --20160518 Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calc ...
分类:
其他好文 时间:
2016-05-18 12:12:00
阅读次数:
143
问题描述 Given a sequence of non-negative integers a0,…,an?1, find the maximum pairwise product, that is, the largest integer that can be obtained by mult ...
分类:
其他好文 时间:
2016-05-17 22:33:16
阅读次数:
510
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 return them as an array.Example:
For num = 5 you sh...
分类:
其他好文 时间:
2016-05-16 13:00:38
阅读次数:
184
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 ...
分类:
其他好文 时间:
2016-05-15 21:16:16
阅读次数:
115
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. ...
分类:
其他好文 时间:
2016-05-14 18:46:37
阅读次数:
110
258. Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the ...
分类:
编程语言 时间:
2016-05-14 18:26:15
阅读次数:
200