G - G
Description
Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then output them.
...
分类:
其他好文 时间:
2015-02-04 14:48:58
阅读次数:
163
功能:翻转字符串 ,翻转数组, 用于STL的翻转。
头文件:
例子:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
char s[100];...
分类:
其他好文 时间:
2015-02-04 14:42:11
阅读次数:
88
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6,...
分类:
其他好文 时间:
2015-02-03 22:44:12
阅读次数:
236
Given a linked list, reverse the nodes of a linked list?k?at a time and return its modified list. If the number of nodes is not a multiple of?k?then left-out nodes in the end should remain as i...
分类:
其他好文 时间:
2015-02-02 23:24:35
阅读次数:
369
Q:
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 ...
分类:
其他好文 时间:
2015-02-02 23:06:26
阅读次数:
153
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:
其他好文 时间:
2015-02-02 14:12:09
阅读次数:
110
function trim() { var start, end; start = 0; end = this.length - 1; while(start = 0; end --) { str = str + this.charAt(end); } ...
分类:
编程语言 时间:
2015-02-02 01:53:35
阅读次数:
195
题目链接:Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in t...
分类:
其他好文 时间:
2015-02-01 17:49:40
阅读次数:
191
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2015-02-01 16:04:04
阅读次数:
125
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".public class Solution { pub...
分类:
其他好文 时间:
2015-02-01 16:02:21
阅读次数:
192