Latest phone interview experience. First, introduced the team, self-introduction.
-
How to monitor application performance?
-
How to monitor the project size as more features are added?
-
Given weighted fruits, return an array of fruits sorted by weight. For example, [[‘apple’, 1], [‘orange’, 2], [‘pineapple’, 4]]
Follow-up:
What if we want to maintain the current sorted array and add more fruits to it without sorting all fruits again?
Return an array sorted by the weight of a specific fruit, like [[‘apple’, 1], [‘apple’, 3], [‘apple’, 4]], and also return all fruits sorted.