🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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)

  1. A.Two pointers
  2. B.Character counting (array of 26 or a hash map)
  3. C.Sliding window
  4. 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 →