Step 1: System Definition
An online coding judge platform (similar to LeetCode) is a web-based system where users solve programming problems by writing code and receiving automated feedback. The primary purpose is to evaluate user-submitted code against predefined test cases in a secure, controlled environment and return the results quickly. Key entities in this system include:
- Problem – A coding challenge with a description, input/output specification, and a set of test cases (with expected outputs). It also has metadata like difficulty, time/memory limits, etc.