Return true if any slow API call returns true (concurrency, early exit)

Problem: Call a slow API concurrently and return true if any call returns true

You are given a blocking API that may take 1–10 seconds to respond:

# API that may take 1-10 seconds to re...

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: