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 as a link...
分类:
其他好文 时间:
2015-01-01 18:35:47
阅读次数:
184
几个套路第一 fast slow 找中点,找位数。第二 reverse{ ListNode last = prev.next; ListNode curr = last.next; while(curr!=null) { last.next = curr.next; ...
分类:
其他好文 时间:
2015-01-01 07:53:20
阅读次数:
138
题目:(LinkedList)Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3...
分类:
其他好文 时间:
2015-01-01 01:29:22
阅读次数:
178
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 as a link...
分类:
其他好文 时间:
2014-12-31 20:11:16
阅读次数:
231
Print in terminal with colors using Python?
1.class colors:
reset='\033[0m'
bold='\033[01m'
disable='\033[02m'
underline='\033[04m'
reverse='\033[07m'
strikethrough='\0...
分类:
编程语言 时间:
2014-12-31 13:11:00
阅读次数:
261
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 as a link...
分类:
其他好文 时间:
2014-12-31 11:23:10
阅读次数:
154
原题地址:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/题意:Given a linked list, reverse the nodes of a linked listkat a time and return its mod...
分类:
编程语言 时间:
2014-12-31 08:41:24
阅读次数:
326
Set Scroll Normal1echo "pointer = 1 2 3 4 5 6 7 8 9 10 11 12" > ~/.Xmodmap && xmodmap .XmodmapSet Scroll Inverted/Reverse1echo "pointer = 1 2 3 5 4 6 ...
分类:
系统相关 时间:
2014-12-30 22:06:29
阅读次数:
256
题目:
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n sati...
分类:
编程语言 时间:
2014-12-30 17:18:11
阅读次数:
239
Reverse a integer is a very common task we need to understand for being a good programmer. It is very easy at some aspects, however, it also needs a p...
分类:
其他好文 时间:
2014-12-30 01:39:15
阅读次数:
214