The challenge: Implement a function that fetches a list of URLs concurrently respecting the API limitations.
This interview uses a locally-running server running on localhost:3000 that your solution code will communicate with. To start it, in a separate terminal type:
cd typescript
npm install
npm run server # keep running in a terminalOpen another terminal window in this folder that you can use to test your solution later.
For Python, open up python/solution.py
For Typescript, open up typescript/solution.py
First, make sure your server from above is running in another terminal window. Second, in a new terminal window, use the following commands
TypeScript
cd typescript
npx tsx run.ts # default: ./solution.ts
npx tsx run.ts path/to/solution.ts # or specify a filePython
cd python
uv run run.py # default: ./solution.py
uv run run.py path/to/solution.py # or specify a fileUse run to iterate on your solution — it prints each result so you can see
what's happening. Use the test harness when you're ready to validate.
If you need to log to stdout, the typical ways will work: Typescript
console.log("foo")Python
print("bar")