Student Information
CMP
Step 1: Read the Problem
Select a scenario above to begin
Read the problem statement fully before looking at either solution.
Choose a week and scenario from the selectors above. The problem statement and both code solutions will load here.
CODE
Step 2: Study Both Solutions
Side-by-Side Code Review
Read both solutions carefully before answering any questions. Notice naming, structure, edge cases, and style.
solution_a.cpp
Structured
solution_b.cpp
Basic Style
Questions and Answers
Steps 3 to 5: Analysis Questions
Structured Code Review
Answer all five questions. Use specific line references where possible.
1Which solution is more readable and why?
Solution A
Solution B
2Which solution handles edge cases and correctness better?
3Which solution is more efficient? Analyse time and space complexity.
4Rate each solution across five software engineering criteria:
5Write three specific code review comments for the weaker solution:
Format each comment like a real GitHub PR review: cite the specific line or function, describe the issue, and suggest the fix.
6What is the single most important lesson from this comparison?
—
Your Verdict
Submit Your Code Review
Export your full review — answers, ratings, comments, and verdict — as a JSON file.