题目:
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 4->5->1->2->3->NULL.
题意:
给定一个链表,以距离右边界...
分类:
编程语言 时间:
2015-07-17 10:04:08
阅读次数:
153
You have a positive integermand a non-negative integers. Your task is to find the smallest and the largest of the numbers that have lengthmand sum of ...
分类:
其他好文 时间:
2015-07-16 21:59:17
阅读次数:
144
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n = 13,Return 6...
分类:
其他好文 时间:
2015-07-15 20:52:00
阅读次数:
115
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 4->5->1->2->3->NULL.
思路:题目很清晰,思路是先得到...
分类:
其他好文 时间:
2015-07-15 15:06:27
阅读次数:
122
Problem StatementGiven a large array of non-negative integer numbers, write a function which determines whether or not there is a number that appears ...
分类:
其他好文 时间:
2015-07-15 01:13:26
阅读次数:
333
题目:
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Yo...
分类:
编程语言 时间:
2015-07-14 11:26:06
阅读次数:
140
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2015-07-13 20:16:45
阅读次数:
116
题意:
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3...
分类:
移动开发 时间:
2015-07-13 18:40:16
阅读次数:
119
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:
其他好文 时间:
2015-07-13 18:02:11
阅读次数:
127
Description:Count the number of prime numbers less than a non-negative number,n.思路:一个一个判断,时间复杂度:O(n^2)代码:TLEpublic class Solution { public int coun...
分类:
其他好文 时间:
2015-07-13 17:45:04
阅读次数:
97