码迷,mamicode.com
首页 >  
搜索关键字:c reverse array stri    ( 35258个结果
34.数组中只出现一次的数字
Find a number which appears once in an array with all the other numbers appear twice.
分类:其他好文   时间:2014-05-22 01:08:40    阅读次数:278
【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
5.29 调整数组顺序使奇数位于偶数前面(QuickSort)
Reorder an array so that odd numbers come before even numbers.
分类:其他好文   时间:2014-05-22 00:38:39    阅读次数:259
php执行效率相关的语句
一:字符替换:strtr > str_replace > preg_replace注意:1:一般用strtr函数的这种形式:string strtr ( string $str , array $replace_pairs )2:如果 replace_pairs 中包含一个空 字符串 (...
分类:Web程序   时间:2014-05-21 23:40:35    阅读次数:357
java学习笔记(二)之数据部分
数据类型 java数据类型基本数据类型数值型整型byte/short/int/long浮点型/double/float字符型char布尔型boolean取值true false对象数据类型类Class接口 interface数组array[]类型 对象位数字节数最小值最大值byte Byte...
分类:编程语言   时间:2014-05-21 22:26:43    阅读次数:317
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
LeetCode:Two Sum
题目:       Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up t...
分类:其他好文   时间:2014-05-21 07:42:18    阅读次数:230
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
【Leetcode】Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-05-21 04:39:53    阅读次数:332
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!