(For reference: Table on p.89 of Cracking the Coding Interview by Gayle Laakmann McDowell)
The solution for 1101 >> 2 is 0011. Is the book's answer wrong? Because from what I've read online and from this stackoverflow post, I thought it should be 1111.
My reasoning is because >> is an arithmetic right shift where you shift with the most significant bit (the left most bit because it preserves negative numbers). Am I understanding this wrong?