Ayush7614 / Ayush7614/Daily-Coding-DS-ALGO-Practice
Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- Dominant language
- C++
- Stars
- 323
- Forks
- 472
- PR merge metrics
- No merged PRs in 30d
Description
# Aim
To solve the Leetcode medium problem "_Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts_" in C++.
# Details
You are given a rectangular cake of size h x w and two arrays of integers horizontalCuts and verticalCuts where:
horizontalCuts[i] is the distance from the top of the rectangular cake to the ith horizontal cut and similarly, and
verticalCuts[j] is the distance from the left of the rectangular cake to the jth vertical cut.
Return the maximum area of a piece of cake after you cut at each horizontal and vertical position provided in the arrays horizontalCuts and verticalCuts. Since the answer can be a large number, return this modulo 109 + 7.
### Programming language
- [ ] C
- [ ] C++
- [ ] Java
- [ ] Python
Contributor guide
Assessment
This issue has not been assessed yet.