Leetcode IDE is not showing valid output for my code.

Hello guys,
So i was trying to solve the 3sum problem here at leetcode. So after i have managed to submit my code it said an error like this one.image
But when i run the same exact code on my machine it gives me the correct ans.
like this.image
What it means is the output of my same code is different than my machine and leetcode IDE. Why? Please help, Thanks

Comments (1)