Note for JAVA users

Tags: #<Tag:0x00007f242f6040c8>


While doing the left shift operation, make sure you do -
instead of
It is necessary to attach the L symbol at the end of 1 to make sure that’s its long-datatype, else java will assume it to be a int and your answer will go out-of-range.


Thanks! you save a lot of time!


Really thanks it save lots of time


Thanks Man. Struggled a lot to understand why the numbers are going in negative