摘要:
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and su 阅读全文
摘要:
怎样推断两个日期在一周内。首先,须要搞清楚一周内究竟是什么含义。国内一般是以周一作为每周的第一天,而西方普遍以周日作为每周的第一天。 下面,我们以西方的标准来处理这个问题。 常见的日期结构: struct DateTime { int year; int month; int day; int we 阅读全文
摘要:
Revenge of LIS II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 444 Accepted Submission(s): 14 阅读全文