Given 25 red balls & 25 blue balls. Arrange them in 2 bowls such that when a ball is picked randomly from one of bowls, the probability of picking red ball is maximum??
Firmware Interview Questions
2,356 firmware interview questions shared by candidates
What are preprocessors and how they executed?
1. Implement alloc and free function in c, the alloc function always return a pointer to a 1k memory chunk, the free release this memory chunk you can not use malloc, calloc, realloc and free. 2. You need to implement a timer module that has a function timer that gets as input a time and function pointer and call the function when the time is expire, what is the best data structure to use to get the next time in o(1) 2.
you have 50 white balls and red balls. you want to distribute them such that it maximizes your chance of picking a red ball when you select one randomly.
Implement in C some kind of routine that works such that you can, via a function, provide it with a time T and a void* callback, such that in T time from now, the callback will be automatically called. Specifically, optimize the solution to the first 256 units of time since most schedueling will be done for them. To somewhat rephrase things, the system simulates several timers at once using its single internal clock, optimized around a specific time (i.e. the worst case can still be O(log(n)) but the most common/average case of times between 0 and 256 need to be O(1) The second question was more like a riddle,
My available date
tcp vs upd
Typical coding questions : reverse a linked list, most efficient way of reversing bit order of a given integer, etc. Questions about my embedded design experience.
What is a real-time operating system?
What are the issues you resolved?
Viewing 491 - 500 interview questions