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
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
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
leetcode 经典题 Palindrome Partitioning 两种方法实现和错误规避。...
分类:
其他好文 时间:
2014-09-11 19:27:32
阅读次数:
152
1 /* 2 题意:给出立方体的每个顶点的坐标(是由源坐标三个数某几个数被交换之后得到的!), 3 问是否可以还原出一个立方体的坐标,注意这一句话: 4 The numbers in the i-th output line must be a permutation o...
分类:
其他好文 时间:
2014-09-11 16:56:02
阅读次数:
157
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
比如:输入: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
/*
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
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
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