Two Pointers Flashcards

(30 cards)

1
Q

https://leetcode.com/problems/container-with-most-water/

A

Two Pointers - Converging (Sorted Array Target Sum)
Use two pointers moving towards each other to solve target sum problems

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

https://leetcode.com/problems/3sum/description/

A

Two Pointers - Converging (Sorted Array Target Sum)
Use two pointers moving towards each other to solve target sum problems

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

https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/description/

A

Two Pointers - Converging (Sorted Array Target Sum)
Use two pointers moving towards each other to solve target sum problems

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

https://leetcode.com/problems/intersection-of-two-arrays/description/

A

Two Pointers - Converging (Sorted Array Target Sum)
Use two pointers moving towards each other to solve target sum problems

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

https://leetcode.com/problems/boats-to-save-people/description/

A

Two Pointers - Converging (Sorted Array Target Sum)
Use two pointers moving towards each other to solve target sum problems

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

https://leetcode.com/problems/squares-of-a-sorted-array/description/

A

Two Pointers - Converging (Sorted Array Target Sum)
Use two pointers moving towards each other to solve target sum problems

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

https://leetcode.com/problems/linked-list-cycle/description/

A

Two Pointers - Fast & Slow (Cycle Detection)
Floyd’s cycle detection algorithm using fast and slow pointers

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

https://leetcode.com/problems/happy-number/description/

A

Two Pointers - Fast & Slow (Cycle Detection)
Floyd’s cycle detection algorithm using fast and slow pointers

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

https://leetcode.com/problems/find-the-duplicate-number/description/

A

Two Pointers - Fast & Slow (Cycle Detection)
Floyd’s cycle detection algorithm using fast and slow pointers

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

https://leetcode.com/problems/is-subsequence/description/

A

Two Pointers - Fast & Slow (Cycle Detection)
Floyd’s cycle detection algorithm using fast and slow pointers

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

https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/

A

Two Pointers - Fixed Separation (Nth Node from End)
Maintain fixed distance between pointers to find nth element from end

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

https://leetcode.com/problems/middle-of-the-linked-list/

A

Two Pointers - Fixed Separation (Nth Node from End)
Maintain fixed distance between pointers to find nth element from end

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

https://leetcode.com/problems/delete-the-middle-node-of-a-linked-list/description/

A

Two Pointers - Fixed Separation (Nth Node from End)
Maintain fixed distance between pointers to find nth element from end

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

https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/

A

Two Pointers - In-place Array Modification
Modify arrays in-place using two pointers technique

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

https://leetcode.com/problems/remove-element/description/

A

Two Pointers - In-place Array Modification
Modify arrays in-place using two pointers technique

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

https://leetcode.com/problems/sort-colors/description/

A

Two Pointers - In-place Array Modification
Modify arrays in-place using two pointers technique

17
Q

https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/description/

A

Two Pointers - In-place Array Modification
Modify arrays in-place using two pointers technique

18
Q

https://leetcode.com/problems/move-zeroes/description/

A

Two Pointers - In-place Array Modification
Modify arrays in-place using two pointers technique

19
Q

https://leetcode.com/problems/sort-array-by-parity/description/

A

Two Pointers - In-place Array Modification
Modify arrays in-place using two pointers technique

19
Q

https://leetcode.com/problems/string-compression/description/

A

Two Pointers - In-place Array Modification
Modify arrays in-place using two pointers technique

20
Q

https://leetcode.com/problems/move-pieces-to-obtain-a-string/description/

A

Two Pointers - In-place Array Modification
Modify arrays in-place using two pointers technique

21
Q

https://leetcode.com/problems/separate-black-and-white-balls/description/

A

Two Pointers - In-place Array Modification
Modify arrays in-place using two pointers technique

22
Q

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

A

Two Pointers - String Comparison with Backspaces
Handle string modifications with backspace operations

23
Q

https://leetcode.com/problems/crawler-log-folder/description/

A

Two Pointers - String Comparison with Backspaces
Handle string modifications with backspace operations

24
https://leetcode.com/problems/longest-palindromic-substring/description/
Two Pointers - Expanding From Center (Palindromes) Find palindromes by expanding from center outwards
25
https://leetcode.com/problems/palindromic-substrings/
Two Pointers - Expanding From Center (Palindromes) Find palindromes by expanding from center outwards
26
https://leetcode.com/problems/reverse-words-in-a-string/description/
Two Pointers - String Reversal Reverse strings or parts of strings using two pointers
27
https://leetcode.com/problems/reverse-string/description/
Two Pointers - String Reversal Reverse strings or parts of strings using two pointers
28
https://leetcode.com/problems/reverse-vowels-of-a-string/
Two Pointers - String Reversal Reverse strings or parts of strings using two pointers
29
https://leetcode.com/problems/reverse-string-ii/description/
Two Pointers - String Reversal Reverse strings or parts of strings using two pointers