摘要: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number 阅读全文
posted @ 2018-11-06 21:55 Veritas_des_Liberty 阅读(221) 评论(0) 推荐(0)
摘要: Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal to the end point o 阅读全文
posted @ 2018-11-06 21:38 Veritas_des_Liberty 阅读(213) 评论(0) 推荐(0)
摘要: Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algor 阅读全文
posted @ 2018-11-06 20:28 Veritas_des_Liberty 阅读(185) 评论(0) 推荐(0)