He asked the best way to store boolean values on memory. I said an array but he wanted more, so in the end I said BinaryVector class. He asked why a binary vector is a better option but I couldn't answer that. I told him that I don't know the internal implementation.
Development Interview Questions
137,407 development interview questions shared by candidates
How would you implemented a priority queue that allows one to get minimum and maximum from the same data structure?
What is the name of our CEO?
What would you say to an employee who was doing an okay job, but not their best?
// // Write a function that takes a string and returns its length without using built in properties (such as .length or .size()). //
First question: for a random-ordered bucket of numbers 1 through 3000 with one number missing, how would you detect which number is missing?
Check if a string is a pallindrome Find the longest distance between any two nodes in a binary tree.
How would you sort an array if you had infinite RAM? Infinite memory?
If I decide that you are not the right candidate after you leave here, what am I missing out on?
Given a database, where we know some portion of data (e.g. say 20%) is accessed more than the other portion of the database by the client. We have a frontend that client requests data from. Design a data structure that will increase the efficiency of access of objects. And we know that we can only hold on to n elements in memory.
Viewing 371 - 380 interview questions