码迷,mamicode.com
首页 >  
搜索关键字:palindrome numbers    ( 9163个结果
组合数学 - 置换群的幂运算 --- poj CARDS (洗牌机)
CARDSTime Limit:1000MSMemory Limit:10000KTotal Submissions:1448Accepted:773DescriptionAlice and Bob have a set of N cards labelled with numbers 1 ... ...
分类:其他好文   时间:2014-09-11 22:07:02    阅读次数:183
Leetcode--Palindrome Partitioning II
Problem Description: Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example...
分类:其他好文   时间:2014-09-11 21:00:32    阅读次数:208
Leetcode-Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他好文   时间:2014-09-11 20:53:22    阅读次数:247
Palindrome Partitioning
leetcode 经典题 Palindrome Partitioning 两种方法实现和错误规避。...
分类:其他好文   时间:2014-09-11 19:27:32    阅读次数:152
codeforces Restore Cube(暴力枚举)
1 /* 2 题意:给出立方体的每个顶点的坐标(是由源坐标三个数某几个数被交换之后得到的!), 3 问是否可以还原出一个立方体的坐标,注意这一句话: 4 The numbers in the i-th output line must be a permutation o...
分类:其他好文   时间:2014-09-11 16:56:02    阅读次数:157
Leetcode dfs&dp Triangle
Triangle  Total Accepted: 17536 Total Submissions: 65508My Submissions Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row...
分类:其他好文   时间:2014-09-11 07:42:01    阅读次数:194
找出数组中特定和数字下标(JAVA)
比如:输入:numbers={2, 7, 11, 15}, target=9输出:index1=1, index2=2 1 public class _003TwoSum { 2 3 public static void main(String[] args) { 4 in...
分类:编程语言   时间:2014-09-10 23:41:01    阅读次数:315
Palindrome Partitioning
/* Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Return ["aa","b"], ["a","a"...
分类:其他好文   时间:2014-09-10 12:33:50    阅读次数:175
TapeEquilibrium (Codility)
A non-empty zero-indexed array A consisting of N integers is given. Array A represents numbers on a tape.Any integer P, such that 0 &A);that, given a....
分类:其他好文   时间:2014-09-09 22:44:39    阅读次数:482
Sum Root to Leaf Numbers <leetcode>
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:其他好文   时间:2014-09-09 21:27:19    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!