What would the classes and methods for a "Hit Point Management" system look like, that has the following functions - increment(user, value), decrement(user, value), getHitPoints(user) and killAll()? The first two methods add/subtract the user's hit points by the amount in value. getHitPoints() returns a user's hit points and killAll() sets all users' hit points to 0. What are the run times of the methods? How can you make all the methods run in O(1)? Note: If we set the hit points data structure to null, or re-initialized it to a new structure, the garbage collector still has to do the work of going through all the users.
Machine Design Interview Questions
10,802 machine design interview questions shared by candidates
Q. How do fasttext embeddings work?
They gave me a machine learning algorithim and asked me how would I derive loss function and why.
How detail oriented would you say you are?
What is activation function, and what activation function is used a output layer?
How to use a bayesian framework for a ranking system. SQL queries. Read and explain some code from their codebase.
questions on ML, basic programming,
why do you choose this company
Machine Learning Algorithm related questions.
What are the pros and cons of SVM, LR, and RF?
Viewing 9361 - 9370 interview questions