Basis
Checkpoints
- Homework: Matrix Multiplication Practice Homework Calculation exercises on matrix multiplication — compute several specific products by hand to internalise the row-by-column rule.
- Homework Answer: Matrix Multiplication Practice Homework Worked solutions to the matrix multiplication practice problems, showing each row-by-column computation step by step.
- Homework: Limits of Sequences — Proofs Homework Two proof problems about limits of sequences: use the ε–N definition to verify (or disprove) convergence.
- Homework Answer: Limits of Sequences — Proofs Homework Worked proofs of the two limit problems using the ε–N definition of convergence.
- Homework: Building a Group on the Rubik's Cube Homework Construct a group whose elements are the moves of a Rubik's cube — identify the underlying set, the operation, the identity, and verify the group axioms.
- Homework Answer: Building a Group on the Rubik's Cube Homework Worked solution to the Rubik's cube group construction: identifies the move set, composition operation, identity, inverses, and walks through the verification of each group axiom.
- Homework: Gauss-Jordan Elimination Practice Homework Calculation exercises that ask you to reduce given augmented matrices to reduced row echelon form by hand and classify the resulting linear systems.
- Homework Answer: Gauss-Jordan Elimination Practice Homework Step-by-step reductions to RREF for each homework matrix, with the solution sets read off the final form.
- Homework: Comparing Two Numbers Homework Read two integers a and b from standard input and print which one is larger (or that they are equal).
- Homework Answer: Comparing Two Numbers Homework Reference Zig solution that reads two integers from stdin, branches with if/else, and prints the larger value (or that they are equal).
- Homework: Sum of an Array Homework Read a line of space-separated integers from standard input, store them in an array, and print their sum.
- Homework Answer: Sum of an Array Homework Reference Zig solution that tokenises the input line, parses each token to i64, accumulates the running total in a single pass, and prints the result.
- Homework: Solving ax² + bx + c = 0 by Simple Continued Fraction Homework Read the coefficients a, b, c and approximate a root of the quadratic ax² + bx + c = 0 by iterating the fixed-point form x = −c / (b + a·x), accumulating successive rational convergents of the simple continued fraction.
- Homework Answer: Solving ax² + bx + c = 0 by Simple Continued Fraction Homework Reference Zig solution that iterates the fixed-point map x ← −c/(b + a·x), tracking rational convergents (numerator/denominator) of the simple continued fraction until the convergents stabilise.
- Homework: Merge Linked Lists Homework Read multiple lines from standard input; turn each line of integers into a singly linked list; then merge all the lists into one and print the result.
- Homework Answer: Merge Linked Lists Homework Reference Zig solution that allocates a node per integer per line, links each line into its own list, and then concatenates the lists into one by walking to the tail of each and patching its next pointer.
- Homework: Fibonacci Sequence with Linked-List Big Integers Homework Represent an arbitrarily large non-negative integer as a linked list of decimal digits, implement addition for this representation, then write a function that returns the n-th Fibonacci number using it.
- Homework Answer: Fibonacci Sequence with Linked-List Big Integers Homework Reference Zig solution that stores each big integer as a singly linked list of decimal digits, implements grade-school addition with carry over the lists, and iterates fib(k) = fib(k−1) + fib(k−2) up to the requested n.