Skip to content

Quest 13 - Next Token Predictor

Quest 13: Next Token Predictor

medium 25 minutes

Goal

Implement bigram language model


Instructions

  1. Download the quest starter code:

    Terminal window
    npx bluebeltdojo download quest-13-next-token-predictor
    cd quest-13-next-token-predictor
  2. Open problem.js in your editor with AI assistance.

  3. Implement the solution following the instructions in problem.js.

  4. Verify your solution:

    Terminal window
    node test.js

Verification

Terminal window
node test.js

When all tests pass, you will see the completion message.


Submit Your Solution

When tests pass, submit your solution:

Terminal window
npx bluebeltdojo submit

You must setup access code first: npx bluebeltdojo setup <code>

Hints

  • Read the instructions in problem.js carefully
  • Check the edge cases mentioned
  • If stuck, peek at _solution/solution.js