HashSet 来检测数组元素的唯一性
36. Valid Sudoku https://leetcode.com/problems/valid-sudoku/
136.
Single Number https://leetcode.com/problems/single-number/应该使用位运算30. Substring with Concatenation
of All Words https://leetcode.com/problems/substring-with-concatenation-of-all-words/
有人说这道题和76. Minimum Window Substring比较像,我把它也放在这大家看看
https://leetcode.com/problems/minimum-window-substring/
3.
Longest Substring Without Repeating Characters https://leetcode.com/problems/longest-substring-without-repeating-characters/
use hashtable to record the character in a string and corresponding position.
205.
Isomorphic Strings https://leetcode.com/problems/isomorphic-strings/
用char to char 的HashTable记录字符的相互的对应的顺序。
202.
Happy Number https://leetcode.com/problems/happy-number/
217. Contains Duplicate HashSet和hashtable的经典题目
219.
Contains Duplicate II https://leetcode.com/problems/contains-duplicate-ii/