Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.25 KB

File metadata and controls

30 lines (23 loc) · 1.25 KB

< Previous                  Next >

Related Topics

[Array] [Math] [String]

Hints

Hint 1 Intuitively performing all shift operations is acceptable due to the constraints.
Hint 2 You may notice that left shift cancels the right shift, so count the total left shift times (may be negative if the final result is right shift), and perform it once.