上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 98 下一页
摘要: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to 阅读全文
posted @ 2018-11-12 10:59 Veritas_des_Liberty 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating 阅读全文
posted @ 2018-11-11 22:36 Veritas_des_Liberty 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the inorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iteratively 阅读全文
posted @ 2018-11-11 21:11 Veritas_des_Liberty 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: Let's call an array A a mountain if the following properties hold: A.length >= 3 There exists some 0 < i < A.length - 1 such that A[0] < A[1] < ... A[ 阅读全文
posted @ 2018-11-09 21:14 Veritas_des_Liberty 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Let f(x) be the number of zeroes at the end of x!. (Recall that x! = 1 * 2 * 3 * ... * x, and by convention, 0! = 1.) For example, f(3) = 0 because 3! 阅读全文
posted @ 2018-11-09 20:52 Veritas_des_Liberty 阅读(295) 评论(0) 推荐(0) 编辑
摘要: A sorted list A contains 1, plus some number of primes. Then, for every p < q in the list, we consider the fraction p/q. What is the K-th smallest fra 阅读全文
posted @ 2018-11-09 18:48 Veritas_des_Liberty 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 98 下一页