All Questions
2 questions
6
votes
4
answers
286
views
Building a toy from Lego toys
I recently attempted a coding problem, but my solution was not well received during the interview (modified slightly to reduce Google-ability).
Suppose a child has several Lego blocks, and wants to ...
3
votes
3
answers
8k
views
Number of right cyclic shifts to give the biggest number
I am preparing to coding interview and I met this task today:
You are given 30-bit unsigned integer N. A right cyclic shift of N by K bits is the result of performing a right cyclic shift of N by one ...