码迷,mamicode.com
首页 >  
搜索关键字:big number    ( 29667个结果
lua学习——类型与值
Lua是动态类型语言,变量不要类型定义 lua中有8个基本类型:nil,boolean,number,string,      userdata,function,thread,table 用函数type可以测试给定变量或者值的类型 1.nil nil类型只有一个值,那就是nil。一个全局变量没有被赋值以前默认为nil,给全局变量赋值nil可以删除该变量 ...
分类:其他好文   时间:2014-06-11 06:38:48    阅读次数:249
每日算法之三十一:Combination Sum
给定一个整数序列,求解一个子序列,子序列之和等于给定目标值。子序列满足以下条件: 1)子序列是有序的 2)子序列的元素个数不限,可以是给定元素的重复元素。 3)结果中的子序列是唯一的 原题描述如下: Given a set of candidate numbers (C) and a target number (T), find all unique combinations ...
分类:其他好文   时间:2014-06-11 06:26:03    阅读次数:302
[LeetCode] Single Number II
Given an array of integers, every element appears three times except for one. Find that single one.Note: Your algorithm should have a linear runtime c...
分类:其他好文   时间:2014-06-10 20:42:48    阅读次数:315
[leetcode]Palindrome Number @ Python
原题地址:https://oj.leetcode.com/problems/palindrome-number/题意:Determine whether an integer is a palindrome. Do this without extra space.click to show spo...
分类:编程语言   时间:2014-06-10 16:06:52    阅读次数:286
ACdream群赛1112(Alice and Bob)
题意:http://acdream.info/problem?pid=1112 Problem Description Here  is Alice and Bob again ! Alice and Bob are playing a game. There are several numbers.First, Alice choose a number n.Then he c...
分类:其他好文   时间:2014-06-10 14:48:56    阅读次数:236
[LeetCode OJ] Single Number之一 ——Given an array of integers, every element appears twice except for one. Find that single one.
1 class Solution { 2 public: 3 int singleNumber(int A[], int n) { 4 int i,j; 5 for(i=0; i<n; i++) 6 { 7 for(j...
分类:移动开发   时间:2014-06-10 11:41:55    阅读次数:259
【Leetcode】Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.每次固定一个点,然后遍历所有其它点,记录每种斜率出现的次数。需要考虑两种特殊情况:斜率不存在和点与固定点重...
分类:其他好文   时间:2014-06-10 08:44:57    阅读次数:164
Plus One
题目 Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is at the head of the list. 方法 ...
分类:其他好文   时间:2014-06-10 06:12:06    阅读次数:285
projecteuler---->problem=25----1000-digit Fibonacci number
问题描述: The Fibonacci sequence is defined by the recurrence relation: Fn = Fn1 + Fn2, where F1 = 1 and F2 = 1. Hence the first 12 terms will be: F1 = 1 F2 = 1 F3 = 2 F4 = 3 F5 = 5 F6 = 8 ...
分类:其他好文   时间:2014-06-10 06:10:06    阅读次数:307
sql row_number() 多表联合分页查询
有三个表Discuss_TableTalk_TableUser_Table然后查询出三个表的所有内容或者可以查询部分内容。下面的语句是测试过的,拿出来分享下!select * from(select row_number() over(order by D_id desc)as rownum,a.*...
分类:数据库   时间:2014-06-10 00:33:52    阅读次数:327
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!