上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 98 下一页
摘要: 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 阅读(219) 评论(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 阅读(248) 评论(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 阅读(219) 评论(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 阅读(289) 评论(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 阅读(182) 评论(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 阅读(277) 评论(0) 推荐(0) 编辑
摘要: You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier. Then 阅读全文
posted @ 2019-05-01 11:07 Veritas_des_Liberty 阅读(352) 评论(0) 推荐(0) 编辑
摘要: We are given two arrays A and B of words. Each word is a string of lowercase letters. Now, say that word b is a subset of word a if every letter in b  阅读全文
posted @ 2019-04-30 20:48 Veritas_des_Liberty 阅读(212) 评论(0) 推荐(0) 编辑
摘要: A string S of lowercase letters is given. Then, we may make any number of moves. In each move, we choose one of the first K letters (starting from the 阅读全文
posted @ 2019-04-30 18:00 Veritas_des_Liberty 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Given a balanced parentheses string S, compute the score of the string based on the following rule: () has score 1 AB has score A + B, where A and B a 阅读全文
posted @ 2019-04-29 22:07 Veritas_des_Liberty 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 98 下一页