题目:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:
其他好文 时间:
2015-04-04 21:16:34
阅读次数:
139
题目链接:largest-number
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
/**
*
Given a list of non negative integers, arrange them such that they form the largest n...
分类:
其他好文 时间:
2015-04-04 12:19:51
阅读次数:
146
??
问题描述:
Determine whether an integer is a palindrome. Do thiswithout extra space.
click to showspoilers.
Some hints:
Could negative integers be palindromes? (ie, -1)
If yo...
分类:
其他好文 时间:
2015-04-04 09:18:33
阅读次数:
137
调用一个存储过程,同样的条件,数据库负载也是正常的情况下,时快时慢。原因是数据库无法获取临时表的统计信息,导致执行计划会走错。之前写过一个帖子,被临时表坑了,http://blog.csdn.net/stevendbaguo/article/details/39964807,就是用hint
/*+ dynamic_sampling(T 10) */
来做动态采集,这种解决方案实践证明还是没...
分类:
其他好文 时间:
2015-04-03 19:28:10
阅读次数:
120
题目链接:Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
...
分类:
其他好文 时间:
2015-04-03 17:18:59
阅读次数:
128
problem:
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 the head of the list....
分类:
其他好文 时间:
2015-04-03 11:26:38
阅读次数:
160
SequenceTime Limit:6000MSMemory Limit:65536KTotal Submissions:7762Accepted:2565DescriptionGiven m sequences, each contains n non-negative integer. Now...
分类:
其他好文 时间:
2015-04-02 20:49:59
阅读次数:
170
problem:
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.
Note: You can only move e...
分类:
其他好文 时间:
2015-04-02 16:27:56
阅读次数:
131
problem:
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.
Hide Tags
L...
分类:
其他好文 时间:
2015-04-02 10:31:03
阅读次数:
117
993 Product of digits
For a given non-negative integer number N, ?nd the minimal natural Q such that the product of all
digits of Q is equal N.
Input
The ?rst line of input contains one po...
分类:
其他好文 时间:
2015-04-02 09:11:13
阅读次数:
219