LeetCode 1052.

1 minute read

Question ``` There is a bookstore owner that has a store open for n minutes. Every minute, some number of customers enter the store. You are given an integer...

LeetCode 1552.

2 minute read

Question ``` In the universe Earth C-137, Rick discovered a special form of magnetic force between two balls if they are put in his new invented basket. Rick...

LeetCode 121 & 122.

2 minute read

Intro LeetCode 121 & LeetCode 122 are similiar so here I put them in a same page.

LeetCode 189.

less than 1 minute read

Intuition keep a subarray of right side of array and replace right side of it by left side. After that, replace the other side.

LeetCode 80.

less than 1 minute read

Intuition An intuitive thought: iterate the given array and record the steps that number on current index needed to be replaced forward. Then, this implemen...