How can this required answer be correct?

  • 0

    For the inputs [1,2,3] and 2000000000, the OJ requires of my Swift solution the answer [2,3,1]. However, 2000000000 % 3 = 2, not 1, and so I fail to see why the correct answer is not [3, 1, 2]. Can anyone explain?

Log in to reply

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