摘要: Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both 阅读全文
posted @ 2019-02-19 23:22 Veritas_des_Liberty 阅读(257) 评论(0) 推荐(0)
摘要: A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文
posted @ 2019-02-19 22:56 Veritas_des_Liberty 阅读(200) 评论(0) 推荐(0)
摘要: A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i 阅读全文
posted @ 2019-02-19 22:10 Veritas_des_Liberty 阅读(191) 评论(0) 推荐(0)