---
title: "Discussion on \"Max Sum of Rectangle No Larger Than K\" | Hashnode"
description: "Discussion on \"Max Sum of Rectangle No Larger Than K\". Problem statement\nGiven an m x n matrix matrix and an integer k, return the max sum of a rectangle in the matrix such that its sum is no larger than k.\nIt is guaranteed that there will be a rectangle with a sum no larger than k.\nProblem statement tak..."
url: "https://hashnode.com/posts/max-sum-of-rectangle-no-larger-than-k/649d65ae7fcfbd9ddc25ccf6"
---

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

Discussion

# [Max Sum of Rectangle No Larger Than K](https://alkesh26.hashnode.dev/max-sum-of-rectangle-no-larger-than-k?utm_source=hashnode&utm_medium=feed)

Problem statement Given an m x n matrix matrix and an integer k, return the max sum of a rectangle in the matrix such that its sum is no larger than k. It is guaranteed that there will be a rectangle with a sum no larger than k. Problem statement tak...

Jun 29, 2023 · 7 min read · alkesh26.hashnode.dev  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#go](https://hashnode.com/tag/go)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Alkesh Ghorpade](https://hashnode.com/@alkesh26)

@alkesh26 · Pune, India

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

Senior Sofware Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
