Bloomberg | Onsite | Trapping rain water and 1 non LC
Anonymous User
384

Coding:

  1. Trapping rainwater

  2. Given bank opening and closing time, and tradeorder time, return if it can be successfully processed.
    Input : Bank opening times : Bank 1 : (11:00-17:00), Bank 2 : (2:00-5:00), Bank 3: (10:00-16:00)

    Test case 1 : Trade time 10:00 - 17:00
    Expected Result: SUCCESS
    Explaination:
    This trade can be executed at bank 3 for 10:00-16:00 time and then at bank 1 for 16:00 to 17:00
    Another way is to execute at bank 3 for 10:00-11:00 and then at bank 1 for 11:00 to 17:00

    Test case 2 : Trade time 2:00 to 11:00
    Expected Result : FAILURE
    Explaination: There is no bank open from 5:00 to 10:00

Design :

Design market depth platform
Input trade events like Security _ buy/sell  _ quantity _ price
Real time updates to the UI
Should handle huge load and present suitable trades on market depth terminal in real time
Comments (3)