Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a ...
分类:
其他好文 时间:
2017-07-31 10:12:11
阅读次数:
180
FDNY to the Rescue! Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 2368 Accepted: 721 Description The Fire Department of New York (FDNY) h ...
分类:
其他好文 时间:
2017-07-31 10:11:43
阅读次数:
245
Duff is addicted to meat! Malek wants to keep her happy for n days. In order to be happy in i-th day, she needs to eat exactly ai kilograms of meat. T ...
分类:
其他好文 时间:
2017-07-30 12:55:36
阅读次数:
166
You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 1*2*...*N. For e ...
分类:
其他好文 时间:
2017-07-29 12:44:02
阅读次数:
117
We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once. For example, 2143 is a 4-digit pandigital and ...
分类:
其他好文 时间:
2017-07-28 12:50:11
阅读次数:
164
You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i ≤ 2 ...
分类:
其他好文 时间:
2017-07-27 20:27:54
阅读次数:
240
Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape plan. Help J ...
分类:
其他好文 时间:
2017-07-26 17:43:55
阅读次数:
151
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:
其他好文 时间:
2017-07-25 12:38:05
阅读次数:
169
Make a program that filters a list of strings and returns a list with only your friends name in it. If a name has exactly 4 letters in it, you can be ...
分类:
其他好文 时间:
2017-07-25 12:33:50
阅读次数:
200
Permutation Counting Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1794 Accepted Submission(s): ...
分类:
其他好文 时间:
2017-07-24 17:30:57
阅读次数:
184