上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 98 下一页
摘要: Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order. Note: Example 1: Input 阅读全文
posted @ 2019-05-12 21:49 Veritas_des_Liberty 阅读(245) 评论(0) 推荐(0)
摘要: Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note:n is positive and will fit within the range of a 32-bi 阅读全文
posted @ 2019-05-05 21:14 Veritas_des_Liberty 阅读(280) 评论(0) 推荐(0)
摘要: Given a positive integer n and you can do operations as follow: What is the minimum number of replacements needed for n to become 1? Example 1: Exampl 阅读全文
posted @ 2019-05-05 20:34 Veritas_des_Liberty 阅读(223) 评论(0) 推荐(0)
摘要: Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a 阅读全文
posted @ 2019-05-05 19:47 Veritas_des_Liberty 阅读(204) 评论(0) 推荐(0)
摘要: You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it is poss 阅读全文
posted @ 2019-05-04 21:51 Veritas_des_Liberty 阅读(245) 评论(0) 推荐(0)
摘要: You are given an array x of n positive numbers. You start at point (0,0) and moves x[0] metres to the north, then x[1] metres to the west, x[2] metres 阅读全文
posted @ 2019-05-04 17:31 Veritas_des_Liberty 阅读(265) 评论(0) 推荐(0)
摘要: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every 阅读全文
posted @ 2019-05-03 15:28 Veritas_des_Liberty 阅读(227) 评论(0) 推荐(0)
摘要: Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. Example: Approach #1: Math. [Jav 阅读全文
posted @ 2019-05-03 12:37 Veritas_des_Liberty 阅读(298) 评论(0) 推荐(0)
摘要: Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or 阅读全文
posted @ 2019-05-03 11:32 Veritas_des_Liberty 阅读(188) 评论(0) 推荐(0)
摘要: We are given that the string "abc" is valid. From any valid string V, we may split V into two pieces X and Y such that X + Y (X concatenated with Y) i 阅读全文
posted @ 2019-05-01 11:24 Veritas_des_Liberty 阅读(286) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 98 下一页