摘要:
Given two 32 bit numbers, N and M, and two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (e g , M becomes a ... 阅读全文
摘要:
Determine the number of bits required to flip if you want to convert integer n to integer m.
Have you met this question in a real interview? Yes
Exam... 阅读全文
摘要:
Given n pieces of wood with length L[i] (integer array). Cut them into small pieces to guarantee you could have equal or more than k pieces with the ... 阅读全文