You are given two 32-bit numbers, N and M, and two bit positions, i and j. Write a method to insert M into N such that M starts at bit j and ends at bit i. You can assume that the bits j through i…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.