report Memory Limit Exceeded .......
But I just use constant memory(actually two points)
How could this be possible to reach the memory liminit??
Add below lines to your code at the start of your code.
This will resolve your issues.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.