---
title: "Discussion on \"Solving Maximum Average Subarray I\" | Hashnode"
description: "Discussion on \"Solving Maximum Average Subarray I\". To see the question, click here.\nNaive Approach\nThe 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..."
url: "https://hashnode.com/posts/solving-maximum-average-subarray-i/667d05ba552289c091635d9c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Solving Maximum Average Subarray I](https://vineethchivukula.hashnode.dev/solving-maximum-average-subarray-i?utm_source=hashnode&utm_medium=feed)

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...

Jun 27, 2024 · 4 min read · vineethchivukula.hashnode.dev  
Read the article

-   [#maximum](https://hashnode.com/tag/maximum)
-   [#average](https://hashnode.com/tag/average)
-   [#subarray](https://hashnode.com/tag/subarray)
-   [#dsa](https://hashnode.com/tag/dsa)

## Written by

[Vineeth Chivukula](https://hashnode.com/@vineethchivukula)

@vineethchivukula · Andhra Pradesh, India

  
[View profile](https://hashnode.com/@vineethchivukula)

Developer && Video editor

There's this guy who's mad about editing and programming. It's his jam, you know?

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
