For those who want to try a similar question like this, here is another one on Hackerrank


Log in to reply
 

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