摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 ≤ 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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. 阅读全文