CP / BASE / 01
Problem solving for teens
Logic, tracing and the first data structures.
Open the syllabusHong Kong · Teens · Competitive programming
A Hong Kong teenager who likes puzzles and code has more contests within reach than most families realise: HKOI and its girls' and primary cousins, SDIC, NOIP, and, for the strongest, the international olympiads. We coach for all of them in one way only: live, one to one, in English, with a mentor who writes the practice tasks and reads every line the student types.
Teaching since 2020 · 10,000+ students worldwide · every Hong Kong class is one to one, live and in English
In short
Competitive programming means solving well-defined algorithm problems against the clock, with an online judge testing each program on hidden data. In Hong Kong, secondary students reach it mainly through HKOI and related contests run by the Hong Kong Association for Computer Education, entered through their schools. Modern Age Coders teaches it to teenagers as live online classes in English, always one to one, at times your family chooses on Hong Kong time: C++, data structures and algorithms, and judge-style tasks we write ourselves.
Courses
One course carries most of the load. The other two fill the gaps students usually have: the language, and the maths that contest organisers say they test.

CP / 01
The main course. Complexity, searching, sorting, prefix sums, greedy choices, graph search, shortest paths and dynamic programming, each tied to judge-style tasks with subtasks.
Open the syllabus →
CP / 02
For a teenager who programs in Python or not at all. The parts of C++ a contest needs: vectors, strings, the standard library, references and fast input.
Open the syllabus →
CP / 03
Number theory, counting and proof-style thinking. The HKOI organisers say discrete mathematics is tested in informatics olympiads, and this course builds it properly.
Open the syllabus →The sport
The organisers of HKOI describe it well, so here is their definition: a mind sport where participants "try to solve well-defined programming problems within a specific time limit".
In a school project, a program is good if it works and looks tidy. In a contest, a program is good if it gives the exact right output for test data it has never seen, within a time and memory limit. Nobody marks the style; the judge marks the behaviour.
That changes how students think. They learn to read limits before they write code, to estimate how many steps a method takes, and to test edge cases on purpose. The HKOI general FAQ lists the skills involved as algorithmic thinking, data structure knowledge, and efficient coding and debugging.
Some want medals. Most want something harder than school ICT, and a contest problem gives exactly that: a clear goal, an honest verdict and a reason to learn the next idea. The ideas themselves, from binary search to shortest paths, are the foundations of computer science at university.
It also suits online learning very well. The whole activity happens at a keyboard, so a mentor sharing a screen sees everything a coach in a room would, and often more.
The HKOI general FAQ adds two pieces of advice we repeat to every new student. Mathematics matters, because "Computers work with numbers", and discrete mathematics in particular is tested. And Linux matters, because the virtual machines used in all the contests HKOI organises run on Linux. Our C++ data structures and algorithms page lists the full topic sequence we follow.
The contest ladder
Several, and most are organised by the same body, the Hong Kong Association for Computer Education, through the HKOI website. Almost all of them need a school to nominate the student.
| Contest | What it is | Latest dates published |
|---|---|---|
| SDIC (Software Development Invitational Contest), with CSP-J/S | A local contest run by HKACE | Heat 19 September 2026; Final 31 October 2026 |
| HKOI, Hong Kong Olympiad in Informatics | The main contest, Junior and Senior Groups, since 1997 | Heat 7 November 2026; Final 5 December 2026 |
| HKGOI, Hong Kong Girls' Olympiad in Informatics | For female secondary students; first step to the EGOI team | Main Event 15 November 2026 |
| NOIP, Hong Kong region | A national contest run by the China Computer Federation since 1995, hosted in Hong Kong by HKACE since 2016 | Contest 28 November 2026 (entries closed 9 November 2026) |
| APIO, EGOI, NOI, IOI | External contests for selected Training Team members | In 2026: 9 May, 12 to 18 May, 18 to 24 July, 9 to 16 August |
Sources: HKOI Organizing Committee pages for HKOI, HKGOI, SDIC and NOIP (Chinese pages) and External Competitions, all read on 23 November 2026. Of the 2026/27 dates, only NOIP on 28 November 2026 and the HKOI Final on 5 December 2026 were still ahead on that day.
HKOI is open strictly to registered day secondary schools; tutorial centres and private candidates cannot enter students. The same pattern runs through the local contests: a teacher, usually in ICT, submits the nomination. A family's first step is therefore a conversation at school, and the second is preparation.
The HKOI general FAQ also names two other local events: the Hong Kong Secondary School Coding Challenge, organised by City University of Hong Kong, and the La Salle-Pui Ching Programming Challenge. Their own organisers publish the details.
Above the local contests sit the international ones. In 2026, Hong Kong students competed at APIO in Taiwan, EGOI in Cesenatico, Italy, NOI in Qingdao and IOI in Tashkent, Uzbekistan, according to the HKOI external competitions page. A government press release of 19 August 2026 reported that the IOI team won two gold medals, a silver and an honourable mention, and ranked sixth among 92 countries or regions.
The Training Team FAQ explains that only HKOI medallists on the Training Team may be selected for the IOI, and that the IOI's own eligibility rules also apply. Our IOI 2027 guide describes the next international contest.
After school, the ladder continues. The HKOI FAQ describes the International Collegiate Programming Contest (ICPC) as a contest for university students in teams of three. Locally, the ACM-HK Programming Contest 2026 was held on Sunday 14 June 2026 at the University of Hong Kong, with a four-hour contest from 1:15 pm and eligibility rules taken from ICPC 2025/2026, according to its organiser. A teenager who enjoys contests now has a path that runs well into university. For a wider look at contests open to students anywhere, see our page on coding competitions for high school students.
Inside the judge
Automatically, and without mercy. Understanding the five steps a judge goes through explains most of what a contest student has to learn.
Steps 1 to 5 follow the order given in the HKOI general FAQ, "How are programs evaluated?"; details from the HKOI Rules. Read on 23 November 2026.
Every lesson ends with the student's code run against tests the mentor wrote but did not show, exactly as a judge would. The first few weeks are humbling, because output format and edge cases catch everyone. After that, students start writing their own tests before they submit, which is the habit that matters.
We also time solutions in a simple way: estimating the number of steps from the limits, before running anything. If the limits allow a million items, a method that compares every pair will not finish, and a student should know that before writing it.
HKOI runs its own Online Judge, which it says holds more than 1,800 tasks and supports Python 3 and several C++ standards, among other languages. It is open to secondary schools in Hong Kong through school subscriptions, so many students can use it through their ICT department.
Students also practise on international contest sites. We do not quote ranking figures from them here, because their pages change daily and we could not read them reliably; a mentor can show a student how to use them in class. Our page on USACO coaching describes one open online contest that any teenager can enter from home.
A real lesson
Graph search turns up across the contest ladder, and HKOI's Senior syllabus lists depth-first search and graph basics by name. Here is the breadth-first search lesson we give, on a task we wrote ourselves.
Our task, "Ridge trail". A made-up hill map is a grid of squares. A hiker starts at S, wants to reach E, and moves one square up, down, left or right at a time, never into rock marked #. What is the fewest number of steps? The map here is small enough to solve by eye, which is exactly why we start with it: the student checks the program against their own answer.
// Our own practice task (Modern Age Coders): "Ridge trail".
// A hiker on a made-up hill map moves up, down, left or right, one square per step,
// and cannot enter rock (#). What is the fewest number of steps from S to E?
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<string> g = {
"S..#......",
".#.#.####.",
".#...#....",
".####.#.#.",
"......#.#E",
".####...#.",
};
int R = g.size(), C = g[0].size();
vector<vector<int>> dist(R, vector<int>(C, -1));
queue<pair<int,int>> q;
int sr = 0, sc = 0, er = 0, ec = 0;
for (int r = 0; r < R; r++)
for (int c = 0; c < C; c++) {
if (g[r][c] == 'S') { sr = r; sc = c; }
if (g[r][c] == 'E') { er = r; ec = c; }
}
dist[sr][sc] = 0;
q.push({sr, sc});
int dr[] = {-1, 1, 0, 0}, dc[] = {0, 0, -1, 1};
int visited = 1;
while (!q.empty()) {
auto [r, c] = q.front(); q.pop();
for (int k = 0; k < 4; k++) {
int nr = r + dr[k], nc = c + dc[k];
if (nr < 0 || nr >= R || nc < 0 || nc >= C) continue; // off the map
if (g[nr][nc] == '#' || dist[nr][nc] != -1) continue; // rock, or already reached
dist[nr][nc] = dist[r][c] + 1;
visited++;
q.push({nr, nc});
}
}
cout << "fewest steps from S to E: " << dist[er][ec] << "\n";
cout << "open squares reached: " << visited << "\n";
cout << "distance map (last digit of each distance, # = rock, ? = unreachable):\n";
for (int r = 0; r < R; r++) {
for (int c = 0; c < C; c++) {
if (g[r][c] == '#') cout << '#';
else if (dist[r][c] < 0) cout << '?';
else cout << dist[r][c] % 10;
}
cout << "\n";
}
}Our own program for this page. Compile with c++ -std=c++17 trail.cpp -o trail and run ./trail.
fewest steps from S to E: 17 open squares reached: 38 distance map (last digit of each distance, # = rock, ? = unreachable): 012#890123 1#3#7####4 2#456#6565 3####0#4#6 456789#3#7 5####012#8
The exact output. In the map, each digit is the last digit of that square's distance from S, so a 7 can mean 7 or 17.
The shortest route takes 17 steps, and the search reached all 38 open squares on the map, so nothing was cut off. The distance map shows the search spreading out like a ripple from S: down the left edge, along the bottom row, up through the gap in the middle and round to E.
Students usually predict a shorter route along the top row, then see from the map that the rock in row two blocks it. That moment, where the program corrects the human, is when breadth-first search stops being a definition and becomes a tool.
Depth-first search, which HKOI's Senior syllabus also names, would still find a route from S to E, but not necessarily the shortest. It dives down one path before trying another. Breadth-first search finishes every square at distance 3 before any at distance 4, which is why the first time it reaches E is the answer.
Each square enters the queue at most once, so the work grows with the size of the map, not with the number of possible routes. On a contest grid of a million squares, that is the difference between a fraction of a second and never finishing.
Between contests
Little and often, with feedback. The contest calendar is short; the months between contests are where students actually improve.
| Months | Focus | Contest it feeds |
|---|---|---|
| December to February | C++ fluency, complexity, sorting, searching, prefix sums | Next year's SDIC and HKOI Heat |
| March to May | Stacks, queues, recursion, breadth-first and depth-first search | HKOI Heat written papers |
| June to August | Greedy methods, simple dynamic programming, timed sets | SDIC in September |
| September to October | Hand-tracing drills, mock written papers of our own | HKOI Heat in early November |
| November to early December | Full tasks with subtasks under a three-hour limit | NOIP and the HKOI Final |
Our own plan. The contest months it points at are taken from the 2026/27 dates published by HKOI for SDIC, HKOI, HKGOI and NOIP; next year's dates were not yet published on 23 November 2026 and may differ.
A student practising alone on a judge sees only verdicts. A mentor sees the route to the verdict: the loop bound chosen too early, the array sized one short, the method that was never going to fit the limit. Each lesson turns one of those into a rule the student keeps.
Because our classes are one to one, the plan is the student's own. A Form 2 student starting out and a Form 5 student aiming at the Final work on different things, at their own pace, in the same week.
Classes are taught in English by mentors based in India. Contest statements, documentation and compiler messages are in English at the international level, so meeting the vocabulary weekly is useful in itself.
India is 2 hours 30 minutes behind Hong Kong all year. A 6 pm class after school in Hong Kong starts at 3:30 pm for the mentor, and a Sunday 11 am class at 8:30 am. Other courses for teens in the city are listed on the Hong Kong coding classes page, and the full topic list is on our data structures and algorithms page.
Progress
Our own rungs, used to plan classes and report to parents. They are not contest levels and predict no result.
| Rung | The student can | Shown by |
|---|---|---|
| 1. Exact | Match an output format character for character | A week with no presentation errors |
| 2. Estimate | Say from the limits whether a method will be fast enough | Correct calls on five unseen tasks |
| 3. Search | Use binary search and breadth-first search without notes | The Ridge trail extensions done alone |
| 4. Choose | Pick between greedy and dynamic programming and defend it | A written reason before coding |
| 5. Test | Write their own tests, including the nasty ones | A bug found before the judge finds it |
| 6. Compete | Manage a full timed set | A three-hour mock with a review in English |
Read the limits before the story.
A queue gives shortest steps; a stack gives a route.
Rung 2 is where contest thinking starts.
Ask your teenager to show you a distance map.
More courses
Nine more courses, each available in Hong Kong as live one-to-one classes in English.
CP / BASE / 01
Logic, tracing and the first data structures.
Open the syllabusCP / BASE / 02
A first language, learned thoroughly.
Open the syllabusCP / BASE / 03
Number ideas explored by programming.
Open the syllabusCP / MATH / 01
Fast, careful problem solving.
Open the syllabusCP / MATH / 02
For older contest students.
Open the syllabusCP / MATH / 03
Counting and chance, done rigorously.
Open the syllabusCP / NEXT / 01
For university students heading to ICPC.
Open the syllabusCP / NEXT / 02
Algorithms meet data.
Open the syllabusCP / NEXT / 03
Building apps with AI, and checking its work.
Open the syllabusHow classes run
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends.
After school
Afternoon in India, a good hour for a fresh mentor.
Weekend
Long slots for timed sets and reviews.
Before contests
Extra classes in the weeks before a Final, if wanted.
A contest coach who stays with your teenager.
Written in a shared editor and discussed as it appears.
Each solution checked on tests the student did not see.
Practice problems written by our mentors.
Every timed set followed by a written review.
Short summaries of progress and next steps.
Student work
Projects from students in our longer courses in many countries. More in our student labs.

AI and ML
An AI nutrition coach that reads what you eat and works you toward a target.

AI and ML
A chatbot that answers mathematics and programming questions, built and deployed by a student.

AI and ML
An assistant that helps a young person recognise unsafe situations online.

Web app
A weather forecasting site with live conditions for any location.
Fees
The fee is set per month and displayed here in Hong Kong dollars. Payment is monthly, one month at a time, so no long course is paid for in advance. A payment gateway charge, if your method carries one, appears at checkout before you decide.
Free first class
Free
no card required
One to one
$1,200 HKD
a month, eight live classes
What families say
Parents' and students' Google reviews, shown exactly as posted.
★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
★★★★★
"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."
Samriddha Mondal
Student
★★★★★
"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."
Vansh Agarwal
Student
★★★★★
"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."
Sonam Oswal
Parent of Dhairya
★★★★★
"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."
Sonu Goyal
Parent
★★★★★
"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."
Ritu Kedia
Parent
Questions
Solving precisely stated programming problems within a time limit, with an online judge testing each solution on hidden data for correctness, speed and memory. The HKOI organisers call it a mind sport.
The main local ones are HKOI, HKGOI for girls, SDIC and the Hong Kong region of NOIP, all organised or hosted by the Hong Kong Association for Computer Education. Entry is normally through the student's school.
C++. HKOI names C++20 as its contest language and treats Python as second-class. A teenager who knows Python can start there and move across with us.
No. These contests take entries through schools. We prepare students; we do not nominate or register them.
No. We never promise a result, a medal or selection for any team.
Yes. The HKOI FAQ says discrete mathematics is tested in informatics olympiads. We teach counting, primes, modular arithmetic and logic alongside the code.
Yes, live and online, by mentors based in India. We do not teach in Cantonese or Putonghua.
Yes. In Hong Kong we teach one to one only, one mentor and one student.
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. India time is 2 hours 30 minutes behind Hong Kong time, so 8 pm for your teenager is 5:30 pm for the mentor.
A laptop or desktop with a keyboard, a C++ compiler we help install in the first class, a headset and a steady connection.
Monthly, shown in Hong Kong dollars, one month at a time; any gateway charge is shown before you pay.
Related
Pages contest families often open next.
Every course for Hong Kong learners.
The topic sequence in detail.
An open online contest to enter from home.
A wider look at contests.
Next year's international olympiad.
What a live one-to-one class is like.
Part of the guide: Every Hong Kong page
More guides: Coding and AI classes in Hong Kong · 中文:英文授課編程課程 · Start here: Online coding for kids · AI, vibe coding and AI agents: AI agents course · Coding subjects and courses: App development · By age and school level: Adults · HKDSE ICT and maths: DSE ICT elective guide · IB, IGCSE, A-level and SAT: A level Computer Science tutor · Guides for families: After-school coding · School holidays: AI summer course · Districts and areas: Causeway Bay
Start here
Tell us your teenager's form, language and any contests tried. In the free class the mentor sets a small task, runs it against hidden tests and talks through the result, then suggests where to begin, live and one to one.
Look around first? How we teach shows a class from inside, and our courses page has every syllabus.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Taught live online in English by mentors based in India. A WhatsApp message in English is the quickest way to reach us.
A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.
Book a priority demo