my result is right in native computer,but when running in OJ ,the answer is wrong??? why?
Perhaps you are relying on undefined or buggy standard library behavior, or perhaps your code is inadvertently using uninitialized memory. Post your code and the platform you're using.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.