Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Intuitively performing all shift operations is acceptable due to the constraints.
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.