Uber Frontend Interview Question

  1. event emitter with callback, how to add callback parameters, how to handle asynchronous callback, how to capture and print the return value when the callback is asynchronous2.
    getSmallest getSecondSmallest, getKthSmallest, note that quickSelect complexity is O(n)