← Strings Quiz: all 8 questions
Strings Quiz · Question 7 of 8
Which techniques are commonly used for string problems? (select all that apply)
Which techniques are commonly used for string problems? (select all that apply)
- A.Two pointers
- B.Character counting (array of 26 or a hash map)
- C.Sliding window
- D.Dijkstra's algorithm
Answer & explanation
Correct answer: Two pointers · Character counting (array of 26 or a hash map) · Sliding window
Strings behave like arrays of characters, so array techniques apply. Dijkstra is for weighted graphs.
Can you get the rest right without peeking?
Take the timed Strings Quiz quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →