zz_

app/demo/mathkit-tasks.txt

zzmq.dev@gmail.com/zz / app / demo / mathkit-tasks.txt @ a951ba59 Download
Ladder Summary
  • file The file `app/demo/mathkit-tasks.txt` is a plain‑text checklist of small, independent programming tasks (e.g., implementing `isPrime`, `gcd`, `lcm`, `factorial`, `fibonacci`, `clamp`, `mean`, `median`, `roundTo`, and `isPerfectSquare` functions, each with accompanying tests) that the demo scripts feed to `zz repo ask`. It does not contain any code and therefore does not export any functions or classes.
 # One task description per line -- fed to `zz repo ask` by
 # demo/bulk-ask.sh. Edit this list (or copy it) with the real set of
 # small, independent tasks before recording Stage 6.
 Add an isPrime(n) function that returns whether n is a prime number, with tests.
 Add a gcd(a, b) function that returns the greatest common divisor of two integers, with tests.
 Add an lcm(a, b) function that returns the least common multiple of two integers, with tests.
 Add a factorial(n) function, with tests.
 Add a fibonacci(n) function that returns the nth Fibonacci number, with tests.
 Add a clamp(n, lo, hi) function that clamps a number into a range, with tests.
 Add a mean(numbers) function that returns the arithmetic mean of an array of numbers, with tests.
 Add a median(numbers) function that returns the median of an array of numbers, with tests.
 Add a roundTo(n, decimals) function that rounds a number to a given number of decimal places, with tests.
 Add an isPerfectSquare(n) function, with tests.