码迷,mamicode.com
首页 >  
搜索关键字:largest number    ( 27910个结果
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 - Maximum Depth of Binary Tree
题目:Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the ro...
分类:其他好文   时间:2014-06-10 10:09:13    阅读次数:237
【leetcode】Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:其他好文   时间:2014-06-10 09:14:50    阅读次数:211
JavaScript基础
JavaScript 是一种解释性的基于对象的脚本语言。 JavaScript 语言使用的语法与 C 语言使用的语法类似,并支持结构化构造,例如if...else、for和do...while。大括号 ({}) 用于分隔语句块。该语言支持各种数据类型,包括String、Number、Boole...
分类:编程语言   时间:2014-06-10 08:50:04    阅读次数:284
【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
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
[cc150] 硬币问题
Given an infinite number of quarters (25 cents), dimes (10 cents), nickels (5 cents) and pennies (1 cent), find how many ways to represent n cents.思路:...
分类:其他好文   时间:2014-06-09 20:04:56    阅读次数:238
[leetcode]Combination Sum @ Python
原题地址:https://oj.leetcode.com/problems/combination-sum/题意:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in...
分类:编程语言   时间:2014-06-09 17:50:09    阅读次数:333
[leetcode]Combination Sum II @ Python
原题地址:https://oj.leetcode.com/problems/combination-sum-ii/题意:Given a collection of candidate numbers (C) and a target number (T), find all unique combi...
分类:编程语言   时间:2014-06-09 17:41:58    阅读次数:320
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!