First Successful Concurrent API Call Within a Timeout
You are given a set of long-running backend API calls. Start all calls concurrently and return the result of the first call that succeeds within a global timeout.
For an executable version of the...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
