Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal number and 110 is...
分类:
其他好文 时间:
2015-02-17 12:53:45
阅读次数:
155
Description描述There are N integers (1A[j].给定N (1 A[j]的数对(i, j)的总数。Input输入The first line of the input contains the number N. The second line contains N....
分类:
其他好文 时间:
2015-02-17 12:51:50
阅读次数:
151
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to...
分类:
其他好文 时间:
2015-02-17 10:25:14
阅读次数:
168
declaretype t_indexby is table of numberindex by binary_integer;type t_nested is table of number;type t_varray is varray(10) of number;v_indexby t_ind...
分类:
数据库 时间:
2015-02-17 09:11:26
阅读次数:
189
末尾是1 但不是11的 st末尾是2 但不是12的 nd末尾是3 但不是13的 rd其他 th打表过程: dp[x]代表第x个humble number dp中所有元素都是从1开始,*2 *3 *5 *7得到// hdu 1058// dp 打表// Feb.16 2015#include #i.....
分类:
其他好文 时间:
2015-02-17 02:02:16
阅读次数:
219
http://acm.hdu.edu.cn/showproblem.php?pid=4734
Problem Description
For a decimal number x with n digits (AnAn-1An-2 ... A2A1), we define its weight as F(x) = An * 2n-1 + An-1 * 2n-2 + ... + A2...
分类:
其他好文 时间:
2015-02-16 23:30:52
阅读次数:
352
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:
其他好文 时间:
2015-02-16 22:12:33
阅读次数:
157
Distinct SubsequencesGiven a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is...
分类:
其他好文 时间:
2015-02-16 20:58:05
阅读次数:
180
/* binary.c -- prints integer in binary form */#include void to_binary(unsigned long n);int main(void){ unsigned long number; printf("Enter ...
分类:
编程语言 时间:
2015-02-16 19:38:43
阅读次数:
170
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can...
分类:
其他好文 时间:
2015-02-16 16:49:56
阅读次数:
137