Unlike the other bitwise operators, zero-fill right shift (>>>) returns an unsigned 32-bit integer.
>>>
and Number.MAX_SAFE_INTEGER = 2 ** 53 - 1 does not fit on 32bits, so you are truncating it.
Number.MAX_SAFE_INTEGER
2 ** 53 - 1
This comment is hidden because it contains spoiler information about the solution
approved.
C# translation added.
Waiting for feedback.
Loading collection data...
and
Number.MAX_SAFE_INTEGER
=2 ** 53 - 1
does not fit on 32bits, so you are truncating it.This comment is hidden because it contains spoiler information about the solution
approved.
C# translation added.
Waiting for feedback.
This comment is hidden because it contains spoiler information about the solution