Question DSA-TP-0026
EasyUsing a sliding window, what is the largest sum of 3 consecutive elements in [2, 1, 5, 1, 3, 2]?
- A.
9
- B.
8
- 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 a sliding window, what is the largest sum of 3 consecutive elements in [2, 1, 5, 1, 3, 2]?
9
8
Sign up free to see the answer and a step-by-step explanation.
6
14