Skip to content

First Sliding window example and the question in leetcode does not correlate #10

Open
@jerrycaffe

Description

@jerrycaffe

I discovered that while talking about the brute force solution i.e naive solution while explaining the sliding window patter, the leetcode example https://leetcode.com/problems/maximum-average-subarray-i/description/ is expected to return a single result of the maximum average, but the code example within the tutrorial returned the average of all k values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions