摘要: A positive integer is magical if it is divisible by either A or B. Return the N-th magical number. Since the answer may be very large, return it modul 阅读全文
posted @ 2018-11-10 18:40 Veritas_des_Liberty 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Koko loves to eat bananas. There are N piles of bananas, the i-th pile has piles[i] bananas. The guards have gone and will come back in H hours. Koko 阅读全文
posted @ 2018-11-10 17:51 Veritas_des_Liberty 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If targetexists, t 阅读全文
posted @ 2018-11-10 17:04 Veritas_des_Liberty 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Return the length of the shortest, non-empty, contiguous subarray of A with sum at least K. If there is no non-empty subarray with sum at least K, ret 阅读全文
posted @ 2018-11-10 16:58 Veritas_des_Liberty 阅读(296) 评论(0) 推荐(0) 编辑