码迷,mamicode.com
首页 >  
搜索关键字:reverse integer    ( 19410个结果
First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:其他好文   时间:2014-06-04 20:13:41    阅读次数:350
Reverse Linked List II
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->2->5->NULL.No...
分类:其他好文   时间:2014-06-04 18:55:07    阅读次数:343
Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2014-06-04 18:18:08    阅读次数:259
PowerDesigner 逆向工程 从SQL文件转换成PDM 从PDM转成CDM
从SQL文件逆向工程到PDM:①选择file -> Reverse Engineer - > Database②在General选项卡中选择MySQL数据库,点击确定。③using script file 选择你的sql文件,最后选择确定。从PDM转成CDM:①选择工具 -> General CDM...
分类:数据库   时间:2014-06-03 14:09:49    阅读次数:363
LeetCode: Roman to Interger 题解
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.找到规则即可罗马数字的表示:I~1 V~5 X~10 L~50 C~100 D~500 ...
分类:其他好文   时间:2014-06-03 12:09:16    阅读次数:210
Reverse Words in a String
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Cl...
分类:其他好文   时间:2014-05-30 16:25:58    阅读次数:233
[leetcode]Subsets @ Python
原题地址:https://oj.leetcode.com/problems/subsets/题意:枚举所有子集。解题思路:碰到这种问题,一律dfs。代码:class Solution: # @param S, a list of integer # @return a list of l...
分类:编程语言   时间:2014-05-30 04:31:09    阅读次数:1243
常用的Java代码汇总
1. 字符串有整型的相互转换Java12Stringa=String.valueOf(2); //integer to numeric stringinti=Integer.parseInt(a);//numeric string to an int 2. 向文件末尾添加内容Java12345678...
分类:编程语言   时间:2014-05-29 20:27:11    阅读次数:414
LeetCode --- Reverse Integer
题目链接从代码的健壮性考虑, 应该顾及到把数字翻转后发生溢出的情况,但是此题中并没有这种测试数据。附上代码: 1 class Solution { 2 public: 3 int reverse(int x) { 4 int tmp = abs(x); 5 i...
分类:其他好文   时间:2014-05-29 00:26:22    阅读次数:243
[译]反-反汇编 & 混淆 #1: 苹果没有遵循自己制定的Mach-O规范?
原文地址:http://reverse.put.as/2012/02/02/anti-disassembly-obfuscation-1-apple-doesnt-follow-their-own-mach-o-specifications/当想到这个特性时,我非常高兴!因为我喜欢突破束缚,并且写了...
分类:移动开发   时间:2014-05-28 10:01:12    阅读次数:353
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!