Number of Orders in the Backlog at Robinhood
Medium53.6% acceptance
This problem has 100.0% frequency at Robinhood.
Problem Description
You are given a 2D integer array `orders`, where each `orders[i] = [pricei, amounti, orderTypei]` denotes that `amounti` orders have been placed of type `orderTypei` at the price `pricei`. The `orderTypei` is: * `0` if it is a batch of `buy` orders, or * `1` if it is a batch of `sell` orders....
Read full problem and hintsTopics
Also asked at 3 companies
More Robinhood Questions
Ways to Split Array Into Three SubarraysMediumRestore the Array From Adjacent PairsMediumCount Good MealsMediumCheck if There is a Valid Path in a GridMediumCount the Number of Consistent StringsEasy
View all Robinhood questions