上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 98 下一页
摘要: Count the number of prime numbers less than a non-negative number, n. Example: Approach #1: C++. Approach #2: Java. Approach #3: Python. 阅读全文
posted @ 2018-11-13 20:22 Veritas_des_Liberty 阅读(300) 评论(0) 推荐(0)
摘要: Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[i] + 阅读全文
posted @ 2018-11-12 19:11 Veritas_des_Liberty 阅读(258) 评论(0) 推荐(0)
摘要: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time 阅读全文
posted @ 2018-11-12 12:38 Veritas_des_Liberty 阅读(207) 评论(0) 推荐(0)
摘要: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
posted @ 2018-11-12 11:49 Veritas_des_Liberty 阅读(208) 评论(0) 推荐(0)
摘要: 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 阅读(267) 评论(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 阅读(218) 评论(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 阅读(183) 评论(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 阅读(361) 评论(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 阅读(306) 评论(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 阅读(286) 评论(0) 推荐(0)
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 98 下一页