Microsoft Onsite - Frontend Interview

Latest phone interview experience. First, introduced the team, self-introduction.

  1. How to monitor application performance?

  2. How to monitor the project size as more features are added?

  3. Given weighted fruits, return an array of fruits sorted by weight. For example, [[‘apple’, 1], [‘orange’, 2], [‘pineapple’, 4]]

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.