Skip to content
RED SAG Skills
easy5 pts · first answer countsarrayssliding-windowtime-complexity

Sliding window time complexity

You compute the sum of every window of size k in an array of size n. Brute force sums each window from scratch. What do brute force and a sliding window cost?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions