LeetCode (easy + medium) part 1 Flashcards

Темы задач: Two Pointers (Arrays, Strings), HashMap/HashSet, Strings (others), Binary Search. (24 cards)

1
Q

Устно:
1) 88. Merge Sorted Array - повторил
2) 125. Valid Palindrome - пропустил (легко + низкий приоритет)
3) 680. Valid Palindrome II
344. Reverse String

A

Two Pointers (Arrays, Strings)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. Remove Duplicates from Sorted Array
A

Two Pointers (Arrays, Strings)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Move Zeroes
A

Two Pointers (Arrays, Strings)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Устно:
7) 167. Two Sum II - Input Array Is Sorted - повторил
Прописать:
8) 15. 3Sum - прорешал

A

Two Pointers (Arrays, Strings)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

9) 18. 4Sum - написал решение, но надо дорефакторить

A

Two Pointers (Arrays, Strings)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. String Compression
A

Two Pointers (Arrays, Strings)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Устно:
12) 1. Two Sum - повторил
13) 1207. Unique Number of Occurrences - прорешал устно
14) 169. Majority Element - прорешал устно
15) 242. Valid Anagram - повторил
17) 771. Jewels and Stones - прорешал устно

A

HashMap/HashSet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

18) 560. Subarray Sum Equals K - долго не мог решить сам, разобрал решение, понятно, но не до конца

A

HashMap/HashSet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

19) 49. Group Anagrams - прорешал

A

HashMap/HashSet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

21) 67. Add Binary

A

Strings (others)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

16) 953. Verifying an Alien Dictionary -

A

HashMap/HashSet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

22) 859. Buddy Strings - прорешал

A

Strings (others)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

23) 205. Isomorphic Strings - вроде понятно, оставил на конец дня

A

Strings (others)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

24) 345. Reverse Vowels of a String - прорешал

A

Strings (others)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

25) 5. Longest Palindromic Substring - прорешал, но долго прорабатывал edge cases

A

Strings (others)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

26) 22. Generate Parentheses - прорешал

A

Strings (others)

17
Q

Устно:
34) 69. Sqrt(x)
35) 704. Binary Search
36) 278. First Bad Version
37) 162. Find Peak Element - решил, но в решебнике проще

A

Binary Search

18
Q

38) 852. Peak Index in a Mountain Array - аналогичная предыдущей
Valid Mountain Array https://leetcode.com/problems/valid-mountain-array

A

Binary Search

19
Q

39) 875. Koko Eating Bananas

A

Binary Search

20
Q

Longest Substring Without Repeating Characters https://leetcode.com/problems/longest-substring-without-repeating-characters

21
Q

Validate IP Address https://leetcode.com/problems/validate-ip-address

22
Q

Merge Intervals https://leetcode.com/problems/merge-intervals

23
Q

Word Pattern https://leetcode.com/problems/word-pattern

24
Q

Maximize Distance to Closest Person https://leetcode.com/problems/maximize-distance-to-closest-person