Question DSA-TP-0033
EasyWith a sliding window, what is the time complexity of finding the sums of all windows of size k in an array of n elements?
- A.
O(n)
- B.
O(n·k)
- C.
O(n²)
- D.
O(k)
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
With a sliding window, what is the time complexity of finding the sums of all windows of size k in an array of n elements?
O(n)
O(n·k)
O(n²)
O(k)
Sign up free to see the answer and a step-by-step explanation.