Pergunta de entrevista da empresa Microsoft

Question 1: Write a function to reverse bits in a number. Then write a function that: 1. Takes two numbers. 2. Reverses the order of bits in both numbers. 3. Swaps the memory locations of these two numbers. Write tests to verify your code. Question 2: You are given a singly linked list. Delete n nodes starting from a given index k. Write tests to verify your code.