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 Learning Developer Interview Questions
8,208 machine learning developer 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.
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?
Your Chinese mate in the company is drinking wine, how would you react?
Viewing 6961 - 6970 interview questions
See Interview Questions for Similar Jobs
Machine Learning ResearcherPython Machine Learning EngineerMachine Learning EngineerMachine Learning ResearchApplied Machine Learning EngineerArtificial Intelligence DeveloperMachine Learning ConsultantSoftware Engineer Machine LearningMachine Learning Research EngineerMachine Learning SpecialistMachine Learning Research ScientistApplied Machine Learning ResearcherDeep Learning Research EngineerAi Machine Learning EngineerSenior Artificial Intelligence EngineerSoftware Engineer DataSenior Computer Vision EngineerJunior Machine Learning Engineer