Count Out-of-Order Processes
Asked at Amazon · Coding Questions · Difficulty: Medium
`processOrder` is the required order of `n` processes and `executionOrder` is the order they actually ran. A process is inaccurate if, when it runs, some process that precedes it in `processOrder` has not run yet. Count the inaccurate processes.
Loading the problem…