码迷,mamicode.com
首页 >  
搜索关键字:palindrome numbers    ( 9163个结果
每日算法之三十一: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
一入python深似海--while-loop与for-loop
while loops 定义与实例 i = 0 numbers = [] while i < 6: print "At the top i is %d" % i numbers.append(i) i = i + 1 print "Numbers now: ", numbers print "At the bottom i is %d" % ...
分类:编程语言   时间:2014-06-11 00:59:17    阅读次数:410
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 digit. Add the two...
分类:其他好文   时间:2014-06-11 00:35:15    阅读次数:243
【002】}链表或字符串模拟加法/加一/乘法
链表模拟加法/字符串模拟二进制加法/数组模拟加一操作/打印1到最大的n位数/字符串模拟乘法============================================Add Two Numbers两个链表代表两个数字,每个结点的值都是一位数字,单链表逆序存放这两个数字,构造出一个新的链表...
分类:其他好文   时间:2014-06-10 22:02:23    阅读次数:409
[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】Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest possible...
分类:其他好文   时间:2014-06-10 10:52:42    阅读次数:192
用程序读取CSV文件的方法
CSV全称 Comma Separated values,是一种用来存储数据的纯文本文件格式,通常用于电子表格或数据库软件。用Excel或者Numbers都可以导出CSV格式的数据。CSV文件的规则0 开头是不留空,以行为单位。 1 可含或不含列名,含列名则居文件第一行。2 一行数据不垮行,无空行....
分类:其他好文   时间:2014-06-10 10:03:30    阅读次数:204
Leetcode:Permutations 排列
戳我去解题Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1...
分类:其他好文   时间:2014-06-10 08:42:11    阅读次数:184
运用简单的bloomfilter算法生成100万个不重复的随机数
bloomFilter算法的基本原理,设计实现一个生成100万个不重复的随机数。...
分类:其他好文   时间:2014-06-10 07:50:25    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!