Easy and Simple Java Solution, 2 ms, and only 3 line.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.