Skip to content

Bug Report for range-sum-query-2d-immutable #5468

@osmanmohh

Description

@osmanmohh

Bug Report for https://neetcode.io/problems/range-sum-query-2d-immutable

The problem description references red, green, and blue rectangles in the examples, but there is no accompanying image showing those rectangles.

Example snippet from the description:

numMatrix.sumRegion(2, 1, 4, 3); // return 8 (i.e. sum of the red rectangle)
numMatrix.sumRegion(1, 1, 2, 2); // return 11 (i.e. sum of the green rectangle)
numMatrix.sumRegion(1, 2, 2, 4); // return 12 (i.e. sum of the blue rectangle)

No rectangles are shown for reference, which makes the example confusing.

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