Bug Report for https://neetcode.io/problems/replace-elements-with-greatest-element-on-right-side
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
There is a test case: arr=[0,0,0,0]
However, the problem's constraints are: 1 <= arr[i] <= 100,000
The constraint's need to be updated to: 0 <= arr[i] <= 100,000
Bug Report for https://neetcode.io/problems/replace-elements-with-greatest-element-on-right-side
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
There is a test case: arr=[0,0,0,0]
However, the problem's constraints are: 1 <= arr[i] <= 100,000
The constraint's need to be updated to: 0 <= arr[i] <= 100,000