Convert an Array Into a 2D Array With Conditions

mediumSolve on LeetCodeLast edited: July 7, 2025