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.
Learning Technology Interview Questions
11,706 learning technology interview questions shared by candidates
How do you organise your time and prioritise your workload?
Why do you want to work here?
Q. How do fasttext embeddings work?
They gave me a machine learning algorithim and asked me how would I derive loss function and why.
Have you used ___________ program before?
What is activation function, and what activation function is used a output layer?
Tell me something about yourself.
Q: Are you comfortable working across time zones? Because you are located so far away...
Q: In your own words, what does the UNDP do?
Viewing 9551 - 9560 interview questions