To see the question, click here. Naive Approach The idea is to calculate the sum of every k consecutive integers and then find the maximum sum, giving us the maximum average. So, maintain two pointers i and j at the first position of the array. i wil...
Developer && Video editor
There's this guy who's mad about editing and programming. It's his jam, you know?
Markdown supported · ⌘↵ to post
No responses yet.