/
Cuttings (10 posts)

exercises

"...A routine application of algebra or other mathematics to a stated challenge."



  1. 11.05.2025
    Nim Macros - Beginner & Intermediate Exercises
    With detailed notes and thought processes.

  2. 06.05.2025
    Nim / Exercise - `timed(expr)` macro
    Measure and print how long an expression takes to run.

  3. 06.05.2025
    Nim / Exercise - `swap(a, b)` macro
    Swap the values of two variables.

  4. 06.05.2025
    Nim / Exercise - `assertPositive(expr)` macro
    Check if the expression is > 0.

  5. 02.05.2025
  6. 02.05.2025
    Nim / Exercise - Make a double(x) macro
    Take an identifier and generate code that doubles its value in-place.

  7. 27.06.2021
    Eloquent Javascript / Chapter 2, Exercise 03
    Chessboard - in which I review ternary operators.

  8. 12.02.2021
    46 Simple Python Exercises/#10
    Find common list members.

  9. 11.02.2021
    46 Simple Python Exercises/#02
    Find the largest of three.

  10. 11.02.2021
    46 Simple Python Exercises/#01
    Largest number selector.

© Wan Zafran. See disclaimer.