Cohere coding interview

Round 4 of 7 · 4 questions reported

See the whole loop
Length
60 min
Format
Live coding
They grade
Standard algorithmic problems, with RAG-flavored ones more often than at other labs
AI use
Reported as generally allowed; you are graded on the work, not on how you use AI
Heads-up
Interviewers push back on memorized solutions to check understanding.

Questions Cohere asks in this round 4

  • Credit card form with validation and linked fieldsCodingBuild a card-details form in the browser (React is fine): cardholder name, card number, expiry date and security code. Validate each field as the user types and on submit, and…
    Last asked Sep 2026
  • Greedy, top-k and top-p decoding for a language modelCodingYou get a toy language model with a small vocabulary whose forward pass returns next-token logits for the tokens so far. Using NumPy, write the generation loop and three ways to…
    Last asked Sep 2026
  • Replace a text game's heuristic logic with LLM callsCodingYou are handed a text game that runs in the terminal, with a few hundred lines of Python that make its decisions through hand-written rules. In a live session, swap that…
    Last asked Sep 2026