Brick Wall

medium
https://leetcode.com/problems/brick-wall/

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Example

Input
Check the link
Output
Check the link
Previous
X Of A Kind In A Deck
Next
Grid Illuminate

Related Questions