Question DSA-TP-0040
EasyUsing two pointers on the sorted array [1, 2, 3, 4, 5], how many pairs of different elements add up to 6?
- A.
1
- B.
4
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Two Pointers and Sliding Window question
Using two pointers on the sorted array [1, 2, 3, 4, 5], how many pairs of different elements add up to 6?
1
4
Sign up free to see the answer and a step-by-step explanation.
2
3