Graded Archive

Solutions Database

Verified logic for graded assignments, mock quizzes, and programming contests. Includes code breakdowns and edge case analysis.

STATISTICS_1 SOLVED
WEEK 03

Probability: Conditional Logic

Q4 Breakdown: Calculating P(A|B) using tree diagrams. Includes Python simulation code to verify the theoretical answer.

def simulate_prob(n_trials):
  hits = 0
  for _ in range(n_trials):
    # Simulation logic...
Score: 100/100
PYTHON SOLVED
WEEK 05

Matrix Operations & Recursion

Optimizing matrix multiplication with list comprehensions. Solving the 'Tower of Hanoi' variation using recursive functions.

return [
  sum(a*b for a,b in zip(A_row, B_col))
  for B_col in zip(*B)
]
Score: 10/10
MATH_2 SOLVED
QUIZ 01

Linear Transformations Quiz

Explanation for Q3: Why a zero determinant implies the matrix is not invertible (singular) and squashes space into a lower dimension.

Score: Passed
CT PENDING
WEEK 06

Graphs & BFS Traversal

Currently working on the shortest path algorithm problem. Edge cases regarding disconnected graphs need verification.

In Progress
PAGE 1 / 4