it was accepted by OJ...
Omg really? Well good luck on the interview with this answer...
Leetcode is a good platform for interview preparation. Not stupid answer like this
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.