摘要: Given a sequence a[1]a[2]a[3]......a[n] your job is to calculate the max sum of a sub-sequence. For example given (6-154-7) the max sum in this sequen 阅读全文
posted @ 2019-09-22 16:37 __MEET 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 有个脑筋急转弯是这样的:有距离很近的一高一低两座桥,两次洪水之后高桥被淹了两次,低桥却只被淹了一次,为什么?答案是:因为低桥太低了,第一次洪水退去之后水位依然在低桥之上,所以不算“淹了两次”。举例说明: 假定高桥和低桥的高度分别是5和2,初始水位为1 第一次洪水:水位提高到6(两个桥都被淹),退到2 阅读全文
posted @ 2019-09-22 16:36 __MEET 阅读(352) 评论(0) 推荐(0) 编辑
摘要: There is a white sheet of paper lying on a rectangle table. The sheet is a rectangle with its sides parallel to the sides of the table. If you will ta 阅读全文
posted @ 2019-09-22 08:16 __MEET 阅读(179) 评论(0) 推荐(0) 编辑