OmniLabБългарски

Break it yourself

Two short labs, no account. Predict what one change does, run both versions, then compare.

  1. Code
  2. Physics
  3. Done

Demo: the coach here plays pre-written questions and nothing is saved. In the full lab the coach adapts to your answers.

Binary Search Boundary

PythonDifficulty: 4
  1. Predict0 of 20 characters written.
  2. Mutate & runUnlocks when your prediction reaches 20 characters.
  3. Observe divergenceUnlocks when both versions have run.
  4. Reflect & submitUnlocks once you have seen the diff.
Preparing your lab...

System code

11 lines

Mutation instructions

`lo = mid + 1` became `lo = mid`. Predict what the call `first_at_least([1, 3, 5, 7], 5)` does now, and for which inputs the behavior changes.

Preparing your lab...