绝对老题了,感觉已经重复了Reverse a singly linked list.click to show more hints.Hint:A linked list can be reversed either iteratively or recursively. Could you imp...
分类:
其他好文 时间:
2015-05-06 20:56:52
阅读次数:
124
【题目】 Determine whether an integer is a palindrome. Do this without extra space.
click to show spoilers.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of co...
分类:
其他好文 时间:
2015-05-06 13:26:23
阅读次数:
115
Reverse Linked ListTotal Accepted:1726Total Submissions:4378My SubmissionsQuestionSolutionReverse a singly linked list.click to show more hints.Hide T...
分类:
其他好文 时间:
2015-05-05 21:20:22
阅读次数:
101
https://leetcode.com/problems/count-primes/Description:Count the number of prime numbers less than a non-negative number,nclick to show more hints.Cre...
分类:
其他好文 时间:
2015-05-05 21:10:44
阅读次数:
103
Reverse a singly linked list.
click to show more hints.
Hint:
A linked list can be reversed either iteratively or recursively. Could you implement both?
思路:
迭代的方式,可以使用一个哨兵节点,方便反转;...
分类:
其他好文 时间:
2015-05-05 19:34:55
阅读次数:
126
Reverse a singly linked list.click to show more hints.Hint:A linked list can be reversed either iteratively or recursively. Could you implement both? ...
分类:
其他好文 时间:
2015-05-05 16:04:23
阅读次数:
118
Reverse a singly linked list.click to show more hints.Hint:A linked list can be reversed either iteratively or recursively. Could you implement both?之...
分类:
其他好文 时间:
2015-05-05 14:01:06
阅读次数:
105
Reverse Linked ListReverse a singly linked list.click to show more hints.Have you met this question in a real interview?class Solution{public: ListNo....
分类:
其他好文 时间:
2015-05-05 11:53:38
阅读次数:
115
Count PrimesDescription:Count the number of prime numbers less than a non-negative number,nclick to show more hints.References:How Many Primes Are The...
分类:
其他好文 时间:
2015-05-04 21:41:10
阅读次数:
112
1、代码
<%
String data = request.getParameter("data");
if (data != null) {
int width = 128;
int height = 128;
String format = "png";
Hashtable hints = n...
分类:
其他好文 时间:
2015-05-04 18:12:18
阅读次数:
155