Career Tracks
Exams
MCQ
Companies
Opportunities
Pricing
MCQ Practice
Data Structures
Two Pointers & Sliding Window
Question
Easy
tcs-nqt
Using two pointers on sorted array [1,3,5,7,9], find if a pair sums to 10. What pairs are found?
A
(1,9) only
B
(3,7) only
C
(1,9) and (3,7)
D
No pair exists
Show Answer
← Back to Two Pointers & Sliding Window questions