摘要:
Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to L is defined to be the sum 阅读全文
posted @ 2019-12-15 20:34
57one
阅读(181)
评论(0)
推荐(0)
摘要:
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s 阅读全文
posted @ 2019-12-15 17:30
57one
阅读(140)
评论(0)
推荐(0)
摘要:
Given two strings S1 and S2, S=S1−S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task 阅读全文
posted @ 2019-12-15 16:21
57one
阅读(83)
评论(0)
推荐(0)
摘要:
The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. F 阅读全文
posted @ 2019-12-15 16:10
57one
阅读(170)
评论(0)
推荐(0)
摘要:
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou 阅读全文
posted @ 2019-12-15 15:34
57one
阅读(136)
评论(0)
推荐(0)

浙公网安备 33010602011771号