Hi, I think it will be better, to sum the array of shifts. so the left shift is "-" and right is "+".
Finally, just make a single shift operation. Here is my JS solution, hope this makes sense:
I am an optimistic and hard worker Software engineer always looking forward to expand my knowledge and experience in the field, and go forward in my career.
Hi, I think it will be better, to sum the array of shifts. so the left shift is "-" and right is "+".
Finally, just make a single shift operation. Here is my JS solution, hope this makes sense:
Yes, that is also a very good approach 👏👏