码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
[算法导论]quicksort algorithm @ Python
算法导论上面快速排序的实现。代码:def partition(array, left, right): i = left-1 for j in range(left, right): if array[j] <= array[right]: i += ...
分类:编程语言   时间:2014-06-06 18:18:13    阅读次数:351
swift笔记1-点语法
var firstForLoop = 0for i in 0...3 { firstForLoop += i i}firstForLoop1 两个点代表是左闭右开 即0,1,22 三个点代表全集合 即0,1,2,3func sumOf(numbers: Int...) -> Int { ...
分类:其他好文   时间:2014-06-06 13:57:57    阅读次数:196
leetcode--Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-06-06 06:57:18    阅读次数:271
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 nu...
分类:其他好文   时间:2014-06-05 14:15:07    阅读次数:221
Excel
1.Excel VBA点击单元格时执行事件!Private Sub Worksheet_SelectionChange(ByVal Target As Range)If Target.Column = 1 And Target.Count = 1 ThenMsgBox "你选中了:" & Targe...
分类:其他好文   时间:2014-06-04 17:57:29    阅读次数:248
POJ2109——Power of Cryptography
Power of CryptographyDescriptionCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers among t...
分类:其他好文   时间:2014-06-04 16:27:41    阅读次数:248
VBA-设置打印页面的范围
Range是VBA的東西不屬excel而ActiveSheet.PageSetup.PrintArea這句是直接指向excel的printarea要求返回的是絕對值(如:$A$1)所以說{不能设置类PageSetup的PrintArea 属性},如果想用range來表達只要在後邊加上.address...
分类:其他好文   时间:2014-06-02 13:17:14    阅读次数:356
VBA选中多行多列及多单元格
选中多个单元格Range(“:[,……]”).Select例:Range(“A1:B2”).Select ‘选中“A1”、“A2”、“B1”、“B2”四个连续的单元格Range(“12:12”).Select ‘选中第12行Range(“B:B”).Select ‘选中第B列Range(“A1:A2...
分类:其他好文   时间:2014-06-02 12:42:01    阅读次数:581
Amicable numbers -- Javascript 实现
问题描述: Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a  b, then a and b are an amicable pair and each ...
分类:编程语言   时间:2014-06-02 12:31:42    阅读次数:298
LeetCode: 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 ...
分类:其他好文   时间:2014-06-01 17:05:44    阅读次数:296
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!