Source: https://leetcode.com/problems/contains-duplicate/

Read More

Source：https://leetcode.com/problems/happy-number/

Write an algorithm to determine if a number is “happy”.

Read More

Source: https://leetcode.com/problems/single-number/

Given a **non-empty** array of integers, every element appears *twice* except for one. Find that single one.

Source: https://leetcode.com/problems/valid-sudoku/

Determine if a 9×9 Sudoku board is valid. Only the filled cells need to be validated **according to the following rules**:

- Each row must contain the digits
`1-9`

without repetition. - Each column must contain the digits
`1-9`

without repetition. - Each of the 9
`3x3`

sub-boxes of the grid must contain the digits`1-9`

without repetition.

Sometimes we need a data structure, it can save and retrieve data rapidly. In lots of circumstances, a hashtable is our best choice. Hashtable is a complex dynamic data structure, in the best situation is saving and retrieving time complexity is O(1).

In this article, we don’t discuss the implementation of the hashtable, We only collect the problems of the hashtable.

Some problems suit for the hashtable, like problems related string, may also suit for array solution. We may choose an array to solve these problems, but we can also use hashtable either.

- 1. Two Sum (Java)
- 3. Longest Substring Without Repeating Characters
- 30. Substring with Concatenation of All Words
- 36. Valid Sudoku
- 49. Group Anagrams
- 136. Single Number
- 202. Happy Number
- 205. Isomorphic Strings
- 217. Contains Duplicate
- 219. Contains Duplicate II
- 290. Word Pattern
- 299. Bulls and Cows
- 347. Top K Frequent Elements
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 355. Design Twitter

8/6/2019，Bridgewater’s Ray Dalio post a new video on Youtube, talk about the impact of China’s Growth on the World Economy with his college.

Read More

I have two Mac often use. Mac OS Catalina is working fine at my Macbook pro. But these two days, my Mac pro got a lot of problems.

Read More

Source: https://leetcode.com/problems/backspace-string-compare/

Given two strings `S`

and `T`

, return if they are equal when both are typed into empty text editors. `#`

means a backspace character.

- March 2020 (3)
- August 2019 (23)
- July 2019 (17)
- May 2019 (15)
- April 2019 (1)

- How to check the Github enterprise version?
- How to restart Github enterprise?
- Github vs. GitLab: Which one is best for enterprise or private code repository?
- LeetCode 355. Design Twitter
- LeetCode 350. Intersection of Two Arrays II
- LeetCode 349. Intersection of Two Arrays
- LeetCode 347. Top K Frequent Elements
- LeetCode 299. Bulls and Cows
- LeetCode 290. Word Pattern
- LeetCode 219. Contains Duplicate II

## Recent Comments