Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subsets whose sums are all ...
分类:
其他好文 时间:
2019-05-06 01:27:57
阅读次数:
113
Problem Statement This is an interactive task. Snuke has a favorite positive integer, N. You can ask him the following type of question at most 64 tim ...
分类:
其他好文 时间:
2019-05-05 19:23:38
阅读次数:
158
1122 Hamiltonian Cycle (25 分) 1122 Hamiltonian Cycle (25 分) 1122 Hamiltonian Cycle (25 分) The "Hamilton cycle problem" is to find a simple cycle that ...
分类:
其他好文 时间:
2019-05-04 16:20:31
阅读次数:
121
Description Give a tree with n vertices,each edge has a length(positive integer less than 1001). Define dist(u,v)=The min distance between node u and ...
分类:
其他好文 时间:
2019-05-03 18:35:52
阅读次数:
108
You are given a tree with n nodes. The weight of the i-th node is wi. Given a positive integer m, now you need to judge that for every integer i in [1 ...
分类:
其他好文 时间:
2019-05-03 18:14:04
阅读次数:
163
A sequence X_1, X_2, ..., X_n is fibonacci-like if: n >= 3 X_i + X_{i+1} = X_{i+2} for all i + 2 <= n Given a strictly increasing array A of positive ...
分类:
其他好文 时间:
2019-05-03 09:23:55
阅读次数:
97
1020 Tree Traversals (25 分) 1020 Tree Traversals (25 分) 1020 Tree Traversals (25 分) Suppose that all the keys in a binary tree are distinct positive i ...
分类:
其他好文 时间:
2019-05-02 09:19:39
阅读次数:
97
1104 Sum of Number Segments (20 分) 1104 Sum of Number Segments (20 分) 1104 Sum of Number Segments (20 分) Given a sequence of positive numbers, a segme ...
分类:
其他好文 时间:
2019-05-01 13:20:46
阅读次数:
85
1136 A Delayed Palindrome (20 分) 1136 A Delayed Palindrome (20 分) 1136 A Delayed Palindrome (20 分) Consider a positive integer N written in standard n ...
分类:
其他好文 时间:
2019-04-29 12:49:14
阅读次数:
157
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 ...
分类:
其他好文 时间:
2019-04-29 11:01:27
阅读次数:
122