Microsoft Interview Question

return the k bit of a given bit sequence

Interview Answer

Anonymous

Aug 18, 2024

manage a list data structure of type in (int is 32 bit - 4 bytes length). calculate the position of the element in the list, then right shift the rest of the bits