码迷,mamicode.com
首页 >  
搜索关键字:reverse integer    ( 19410个结果
7.翻转句子中单词的顺序
Reverse the word order in a sentence, but maintain the character order inside a word.
分类:其他好文   时间:2014-05-22 03:50:14    阅读次数:289
19.反转链表
Reverse a linked list.
分类:其他好文   时间:2014-05-22 02:15:57    阅读次数:219
17.把字符串转换成整数atoi
String to integer(atoi).
分类:其他好文   时间:2014-05-22 01:34:24    阅读次数:234
39.递归颠倒栈
Reverse a stack.
分类:其他好文   时间:2014-05-22 01:24:22    阅读次数:275
22.整数二进制表示中1的个数
The number of 1 bits in an integer.
分类:其他好文   时间:2014-05-22 01:21:04    阅读次数:214
【LeetCode】Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:其他好文   时间:2014-05-22 00:49:57    阅读次数:311
LeetCode: First Missing Positive [040]
【题目】 Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constant space. 【题意】 给定一个数组,找出第一个缺失的正数。时间复杂度O(n) ...
分类:其他好文   时间:2014-05-21 17:13:07    阅读次数:219
leetcode -day20 Add Two Numbers
1、 ?? Add Two Numbers  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 num...
分类:其他好文   时间:2014-05-21 10:49:10    阅读次数:221
poj 3070 Fibonacci(矩阵快速幂)
Description In the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn ? 1 + Fn ? 2 for n ≥ 2. For example, the first ten terms of the Fibonacci sequence are: 0, 1, 1, 2, 3, 5, 8, 13, 21, ...
分类:其他好文   时间:2014-05-21 09:39:15    阅读次数:231
Leetcode:Reverse Linked List II 单链表区间范围内逆置
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 satisfy the fol...
分类:其他好文   时间:2014-05-21 07:18:02    阅读次数:301
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!