1. Write a function (in any programming language) that gets an integer parameter and returns the number of 1 digits in its binary representation. 2. How would you implement this even faster if you had infinite memory and processing capabilities.
C Software Developer Interview Questions
396 c software developer interview questions shared by candidates
Implement an efficient operation on some unique data structure based on an internal std::map
What are the four foundations of object-oriented design?
Implement a logger with multiple backends for writing logs (screen, file, cloud, tape, etc). After implementing the task gets more complicated: implement an asynchronous logger capable writing to slow devices without blocking the caller.
Reverse a string of words, such that the last word would come to be the first, the previous to last the second, etc. all the way till the first, which becomes the last. for example "abc def ghi" should become "ghi def abc"
Programming questions: 1) String-pattern matching 2)Arrival-departure problem
In the situation when your opinion about work is different from your team leader's, how would you deal with.
Tell me output of the code? (size of a user defined struct)
The usual questions like "speak about yourself", "why would you like to join?", "what did you do in the past?" + printed A4 paper with intentionally misformatted and badly written C++ code to analyze line by line in speech and identify logical, runtime and design errors.
1) What does the following code do? 2) What changes would you make to improve the code (not regarding performance)? void func(int array[ARRAY_SIZE]) { int p = 0; for (int r = 0; r < 4; r++) { for (int i = p; i < ARRAY_SIZE; i++) { if (array[i] % 5 == r) { if (i != p) { int temp = array[p]; array[p] = array[i]; array[i] = temp; } p++; } } } }
Viewing 11 - 20 interview questions