Skip to content
Medium-Easy Understand Arrays & Strings Multiple Choice

After fixing nums[i] in 3Sum, what is the two-pointer time complexity for finding all pairs?

Understand — Tests comprehension and ability to explain concepts.

Answer Options

A O(n) for each fixed i
B O(n log n)
C O(n²)
D O(1)

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 34+ more Arrays & Strings questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Arrays & Strings topic (Data Structures).

More Arrays & Strings Questions