Skip to content

College+ · Discrete Math

Big-O growth

57 problems in this skill, each with a solver-verified answer key. Answers are checked the moment you submit — with a hint if you want one and a worked solution afterwards.

What the problems look like

A few statements from this skill. Answers, hints and worked solutions live in the practice session.

  1. Warm-up

    A loop starts with n=32n = 32 (a power of two) and repeatedly replaces nn with ⌊n/2⌋\lfloor n/2 \rfloor, stopping as soon as n=1n = 1, incrementing a counter on each pass. How many times does the loop body execute? (This is why halving until 11 takes Θ(log⁡n)\Theta(\log n) time.)

  2. Warm-up

    A loop starts with n=2048n = 2048 (a power of two) and repeatedly replaces nn with ⌊n/2⌋\lfloor n/2 \rfloor, stopping as soon as n=1n = 1, incrementing a counter on each pass. How many times does the loop body execute? (This is why halving until 11 takes Θ(log⁡n)\Theta(\log n) time.)

  3. Warm-up

    A loop starts with n=1024n = 1024 (a power of two) and repeatedly replaces nn with ⌊n/2⌋\lfloor n/2 \rfloor, stopping as soon as n=1n = 1, incrementing a counter on each pass. How many times does the loop body execute? (This is why halving until 11 takes Θ(log⁡n)\Theta(\log n) time.)

Problems shown under their original terms: Generated (template, solver-computed).

Practice this free, right now

Unlimited math practice is on the free plan — no card, no trial clock.

See every Discrete Math skill for college+