Write a C program to encode bits in a 32-bit number such that, most significant 16 bits should be reversed but lower 16 bits should be untouched. Then asked to generalize this to any number of bits.
Software Interview Questions
551,361 software interview questions shared by candidates
How will you prevent the code in finally block from executing? The question isn't a very fair one as a good programmer would not write the code in finally block that he/she doesn't want to execute
How do you check if two numbers are equal without using comparators?
How would you design a database that allows these two tables to be stored and be infinitely expandable, while maintaining speed of execution?
//A program to find the sum of contiguous subarray within a one-dimensional array of numbers which has the largest sum. //{-2, 3, 3, -1, -2, 1, 5, -3} //{2, 3, 4, 1, 2, 1, 5, 3}
solve leetcode easy? solve leetcode hard?
Implement the battleship game
Given a linked list. Write a C program to reverse it.
Without using length and size function how could you get the 2nd last variable in an array of integers?
Find local maxima in an unsorted array with n time
Viewing 2811 - 2820 interview questions