Mock online coding assessment
75 min · Advanced
An online coding assessment (OA) is a timed test where you solve a few problems in an online editor, your program reads input from standard input, and hidden test cases decide your score. This mock has two problems and a 60-minute timer: read the rules, set a timer, and try both problems before you read any solution.
Topics in this lesson
- Mock rules: two problems, 60 minutes, Java 17, stdin to stdout
- Problem 1: the longest run within a canteen budget
- Problem 2: the minimum number of classrooms
- Sample and hidden-style tests, and what partial scores tell you
- Coding-round checklist
Interview questions this lesson answers
- What is an online coding assessment?
- What are hidden test cases?
- Why do many platforms want a class named Main?
- Scanner or BufferedReader for input?
- How do you read numbers that may be split across several lines?
- How do you decide which complexity you need?
- When should you use long instead of int?
- What does TLE tell you?
- Your code passes small tests but fails large ones with WA. What do you check first?
- Your code fails small tests with WA. What do you check?
Sign in free to continue this lesson
Create a free account to read every lesson, practise with the exercises and keep track of your progress.