🧪 Description Given a string s, find the length of the longest substring without repeating characters. Example 1: Example 2: Example 3: Example 4: 💊 Solution disscuss에도 풀이를 설명과 함께 올려두었다 end pointer를 이동해가며 해당 알파벳이 set에 들어있는지 확인한다. 없을 경우에 알파벳을 set에 넣는다. end와 start 포인터간의 거리를 구한다. 이 거리는 매번 구한 다음 최댓값을
Design a HashSet without using any built-in hash table libraries. Implement MyHashSet class: void add(key) Inserts the value key into the HashSet. bool contains(key) Returns whether the value key exists in the HashSet or not. void remove(key) Removes the value key in the HashSet. If key does not exist in the HashSet, do nothing. Example 1: Explanation 풀이