码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
LeetCode Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Show Tags 题意:将数...
分类:其他好文   时间:2015-01-07 11:05:36    阅读次数:118
Leetcode:
Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.Naive方法:A simple method is...
分类:其他好文   时间:2015-01-07 08:11:12    阅读次数:117
Flask SQLAlchemy 表字段默认值
在网上查到的SQLAlchemy设置字段默认值的方法都是类似如下方法:fromsqlalchemy.sql.sqltypesimportTIMESTAMP classTest(db.Model): id=db.Column(db.Integer,primary_key=True) name=db.Column(db.String(32)) create_date=db.Column(TIMESTAMP,default=datetime.datetime)但..
分类:数据库   时间:2015-01-07 07:05:51    阅读次数:1165
字符串合并
procedure Add(var Result: string; P: PChar; Count: Integer); var ? Len: Integer; begin ? Len := Length(Result); ? SetLength(Result, Len + Count); ? Move(P^, Result[Len], Count); end;...
分类:其他好文   时间:2015-01-06 21:43:48    阅读次数:156
Integer ==与Equals【原创】
package Equals;public class IntegerEquals { public static void main(String[] args) { printLine(128); Integer a=128; Integer b=...
分类:其他好文   时间:2015-01-06 21:20:42    阅读次数:215
Gray Code(格雷码)
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:其他好文   时间:2015-01-06 19:55:57    阅读次数:159
[LeetCode]118 Pascal's Triangle
https://oj.leetcode.com/problems/pascals-triangle/http://blog.csdn.net/linhuanmars/article/details/23311527publicclassSolution{ publicList<List<Integer>>generate(intnumRows){ List<List<Integer>>toReturn=newArrayList<>(); if(nu..
分类:其他好文   时间:2015-01-06 18:15:51    阅读次数:126
[LeetCode]119 Pascal's Triangle II
https://oj.leetcode.com/problems/pascals-triangle-ii/http://blog.csdn.net/linhuanmars/article/details/23311629publicclassSolution{ publicList<Integer>getRow(introwIndex) { //SolutionA: //returngetRow_OKSpace(rowIndex); //SolutionB: returngetRow_Extra..
分类:其他好文   时间:2015-01-06 18:15:30    阅读次数:117
[LeetCode]120 Triangle
https://oj.leetcode.com/problems/triangle/http://blog.csdn.net/linhuanmars/article/details/23230657publicclassSolution{ publicintminimumTotal(List<List<Integer>>triangle) { //SolutionA: //returnminimumTotal_MaintainSums(triangle); //SolutionB:..
分类:其他好文   时间:2015-01-06 18:12:52    阅读次数:152
VB 进制转换大全
'二进制转十进制Public Function B2D(vBStr As String) As Long Dim vLen As Integer '串长 Dim vDec As Long '结果 Dim vG As Long '权值 Dim vI...
分类:其他好文   时间:2015-01-06 17:44:59    阅读次数:102
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!