Repeating this exercise at least once daily has produced real results for me, and helped me get comfortable thinking and speaking about algorithms outside of my normal operating environment (i.e. in front of a keyboard ;).
Repeating this exercise at least once daily has produced real results for me, and helped me get comfortable thinking and speaking about algorithms outside of my normal operating environment (i.e. in front of a keyboard ;).
Do you think going through all the questions on Interviewcake prepared you well for interviews?
I've been going through them and I either find them to be very easy, or very hard. Not much in between. Actually, come to think of it, that's usually how interview questions go for me, too.
Like I said though I knew that I had done this question before and knew how to do it. Just like I knew that (x > 0 || x < 0) is the same thing as (x != 0). I think its the actual being in front of a stranger part that I need to practice most.