码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
Subsets
Given a set of distinct integers,nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not...
分类:其他好文   时间:2015-06-12 00:26:48    阅读次数:119
Java for LeetCode 216 Combination Sum III
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:编程语言   时间:2015-06-09 23:16:23    阅读次数:144
Codeforces550C:Divisibility by Eight
You are given a non-negative integer n, its decimal representation consists of at most 100 digits and doesn't contain leading zeroes. Your task is to determine if it is possible in this case to r...
分类:其他好文   时间:2015-06-09 17:21:09    阅读次数:133
LeetCode31: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 ord...
分类:其他好文   时间:2015-06-09 11:56:53    阅读次数:106
Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:其他好文   时间:2015-06-09 11:31:09    阅读次数:101
天题系列: Scramble String -- 三维动态规划
题目:Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representat...
分类:其他好文   时间:2015-06-09 06:13:42    阅读次数:93
Count Complete Tree Nodes
complete tree,except possibly the last, is completely filled, and all nodes in the last level are as far left as possible.from wiki本来在考虑最底层到底满不满,发现是通过...
分类:其他好文   时间:2015-06-09 06:12:13    阅读次数:99
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], [3,1,2], and [3,2,1]. 解题思路:求一串数字的...
分类:其他好文   时间:2015-06-08 17:26:10    阅读次数:110
Leetcode题解(4):L216/Combination Sum III
L216: Combination Sum III   Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of number...
分类:其他好文   时间:2015-06-08 15:03:38    阅读次数:116
Looksery Cup 2015 Editorial
下面是题解,做的不好。下一步的目标是rating涨到 1800,没打过几次cfA. Face DetectionAuthor:MonyuraOne should iterate through each 2x2 square and check if it is possible to rearra...
分类:其他好文   时间:2015-06-07 21:23:51    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!