Skip to content

Queries on a Matrix #11

Description

@Aman1143

Given a matrix of dimension n*n. All the cells are initially, zero. Given Q queries, which contains 4 integers a b c d where (a, b) is the TOP LEFT cell and (c ,d) is the Bottom Right cell of a submatrix. Now, all the cells of this submatrix have to be incremented by one. After all the Q queries have been performed. find the final resulting Matrix.

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