2018年10月4日
摘要: On an infinite number line (x-axis), we drop given squares in the order they are given. The i-th square dropped (positions[i] = (left, side_length)) i 阅读全文
posted @ 2018-10-04 15:03 f91og 阅读(382) 评论(0) 推荐(0) 编辑
  2018年10月2日
摘要: We are given N different types of stickers. Each sticker has a lowercase English word on it. You would like to spell out the given target string by cu 阅读全文
posted @ 2018-10-02 00:47 f91og 阅读(382) 评论(0) 推荐(0) 编辑
  2018年9月29日
摘要: There is a strange printer with the following two special requirements: Given a string consists of lower English letters only, your job is to count th 阅读全文
posted @ 2018-09-29 16:54 f91og 阅读(243) 评论(0) 推荐(0) 编辑
摘要: You have n super washing machines on a line. Initially, each washing machine has some dresses or is empty. For each move, you could choose any m (1 ≤ 阅读全文
posted @ 2018-09-29 15:45 f91og 阅读(308) 评论(0) 推荐(0) 编辑
  2018年9月28日
摘要: A sequence of numbers is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文
posted @ 2018-09-28 23:35 f91og 阅读(322) 评论(0) 推荐(0) 编辑
摘要: A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i 阅读全文
posted @ 2018-09-28 21:31 f91og 阅读(262) 评论(0) 推荐(0) 编辑
摘要: Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or *between the di 阅读全文
posted @ 2018-09-28 00:04 f91og 阅读(173) 评论(0) 推荐(0) 编辑
  2018年9月26日
摘要: https://leetcode.com/problems/unique-letter-string/description/ A character is unique in string S if it occurs exactly once in it. For example, in str 阅读全文
posted @ 2018-09-26 23:41 f91og 阅读(453) 评论(0) 推荐(0) 编辑
  2018年9月24日
摘要: 1. 习惯于 be used to be accustomed to eg: I'm used to loneliness. / 我已习惯孤独 He is accustomed to hard work. / 他习惯艰苦工作 She used to make a speech in public. 阅读全文
posted @ 2018-09-24 12:13 f91og 阅读(385) 评论(0) 推荐(0) 编辑
  2018年9月23日
摘要: 1. 小米笔试题——升级蓄水池 题目描述: 在米兔生活的二维世界中,建造蓄水池非常简单。 一个蓄水池可以用n个坐标轴上的非负整数表示,代表区间为【0-n】范围内宽度为1的墙壁的高度。 如下图1,黑色部分是墙壁,墙壁的高度是[0,1,0,2,1,0,1,3,2,1,2,1] ,蓝色部分是蓄水的面积,可 阅读全文
posted @ 2018-09-23 00:35 f91og 阅读(1403) 评论(2) 推荐(0) 编辑