JR / CODE / 01
Python for teens
The first text language, learned properly.
Open the syllabusHong Kong · Informatics olympiad · HKOI Junior Group
The Junior Group is where most Hong Kong students meet HKOI for the first time, often in S1 or S2 and often with only school ICT behind them. We coach those students live, one to one and in English: first the habit of reading code exactly, then the searching, sorting and data structures the Junior syllabus names, then the step from Python into C++.
Teaching since 2020 · 10,000+ students worldwide · every Hong Kong class is one to one, live and in English
In short
The HKOI Junior Group is the younger division of the Hong Kong Olympiad in Informatics. For 2026/27 it is open to students born on or after 1 July 2010 with more than two years of secondary school left, usually S1 to S4, nominated by their day secondary school. Modern Age Coders prepares Junior students through live online classes in English, one to one, at times your family sets on Hong Kong time: code tracing for the written Heat, the Junior syllabus, and C++ for the Final. We never promise a place or a medal.
Courses for Junior students
Most Junior students are twelve to fifteen. These three courses take them from careful reasoning to contest-ready code, in the order we usually teach them.

JR / 01
The natural first course for an S1 or S2 student. Logic, tracing, searching and sorting, stacks and queues, explained slowly with pen-and-paper practice before any timed work.
Open the syllabus →
JR / 02
Taken once the reasoning is steady. A Junior student who already writes Python learns the same ideas with types, vectors and the standard library, ready for a judge.
Open the syllabus →
JR / 03
For an S3 or S4 student aiming at the Final. Timed tasks with subtasks, complexity, and the first graph and dynamic programming ideas.
Open the syllabus →Eligibility
A student has to meet every Junior rule at once: a birth date, a minimum number of school years still ahead, and a maximum. And, as for every HKOI entrant, the nomination has to come from a day secondary school in Hong Kong.
| Rule | Junior Group | Senior Group |
|---|---|---|
| Born on or after | 1 July 2010 | 1 July 2007 |
| Latest stage of school | More than 2 years of secondary school left (S1 to S4 on the HKDSE route) | Has not completed secondary school (S1 to S6) |
| Earliest stage of school | Fewer than 7 years of secondary school left | Fewer than 7 years of secondary school left |
| Places per school | 8: 6 open to S1 to S4, 2 kept for S1 to S3 (pilot) | 8, any level |
| Entry route | School nomination only | School nomination only |
Source: HKOI Organizing Committee, HKOI Rules (updated for 2026/27) and HKOI 2026/27 Apply, read on 23 November 2026. The rules describe the quota split as a "2026/27 Pilot, subject to review in subsequent years".
Until 2025/26 a school could fill its eight Junior places with any eligible students. For 2026/27 HKOI reserves two of them for students with more than three years of secondary school left, which on the local route means S1 to S3. In the rules' own words, among the eight Junior nominees "at most 6 may be from S4 (or equivalent)".
For a younger student this is good news: schools now have a reason to put S1, S2 and S3 students forward. For parents it means a conversation with the ICT teacher in September is worth having, because nominations for 2026/27 closed on 27 October 2026 and HKOI recorded 528 Junior nominations against a quota of 600.
Schools on non-local curricula use HKOI's Non-local Curriculum Level-of-Study Reference Table. The FAQ gives two useful examples. A Grade 6 student in the Middle School of an international school can enter, provided fewer than seven years of secondary school remain. A Year 11 student can enter the Junior Group only if more than two years remain, so not at a school that stops at Year 12.
A Junior-age student may choose the Senior Group instead; the FAQ answers a 15-year-old S4 student's question with "Yes it is allowed." No student can enter both groups, and HKOI charges no entry fee.
The numbers
HKOI's own answer is "Not necessarily", and its 2025/26 statistics show why. The number of Final places and medals is fixed, so a crowded Junior field can make the Junior Group tougher, not gentler.
| Group | Students who sat the Heat | Mark needed to reach the Final | Median mark | Average Heat mark of Gold medallists |
|---|---|---|---|---|
| Junior | 415 | 25.0 | 16.5 | 40.0 |
| Senior | 450 | 21.5 | 13.5 | 34.7 |
Source: HKOI Organizing Committee, HKOI 2025/26 Statistics, Heat Event table. The last column is HKOI's "Average score of prize winners" for Gold, measured on the Heat, not on the Final.
In 2025/26 a Junior student needed 25.0 marks out of 45 to reach the Final, against 21.5 in the Senior Group, and the Junior median was also higher. The Junior Group is not a softer version of the Senior one; the questions are pitched lower, but the students answering them are strong for their age, and the line to the Final moves with them.
HKOI's rules cap each group's Final at 96 students, apart from a small exception for students defending a Gold medal. The 2025/26 Final had 98 Junior finalists.
The Junior Final in 2025/26 was marked out of 400, and the top Junior score was the full 400. The published cut-offs were 303 for Gold, 244 for Silver, 206 for Bronze and 172 for an Honourable Mention. In the Senior Group the Gold line was 234.
So the Junior Final rewards complete, correct solutions. A student who can fully solve two tasks and secure the early subtasks of the others is in medal territory; one who reaches the Final with only partial ideas usually is not. Coaching for the Final is therefore about finishing, not just starting.
Two awards exist only for younger students. The Best Young Contestant Award goes to the highest-scoring Junior finalist with more than three years of secondary school left, and a separate award for first-time contestants (Junior Group) to the highest-scoring Junior finalist entering for the first time. Both appear on the HKOI awards page. They are one reason some families start early; we still never promise them, or any result.
What is tested
HKOI publishes a short syllabus that it calls "a guide only". The Junior list is roughly what a careful S2 or S3 student can master in a year of steady work, and it is our checklist for Junior coaching.
| Area in HKOI's Junior list | Topics HKOI names | How we approach it |
|---|---|---|
| Mathematics | Euclidean distance (Pythagoras' theorem), primes, permutation and combination, modular arithmetic, Boolean algebra | Short daily puzzles, solved by hand first and then checked with a few lines of code |
| Programming basics | Variables, expressions, functions, data types, conditionals, loops, string processing, arrays | Tracing tables: predict each variable's value line by line before running |
| Searching | Linear search, binary search | The shelf lesson on this page, then searching for answers rather than items |
| Sorting | Bubble, selection and insertion sort, quicksort, merge sort, counting sort | Sorting cards on camera, then counting swaps and comparisons in code |
| Data structures | Stack, queue and linked list concepts, and the built-in libraries for them | Simulating each structure with paper slips before using the library |
| Debugging | Errors and debugging | Finding the bug in our own broken programs, and explaining it in English |
Topics: HKOI Competition Syllabus, Junior Group, read on 23 November 2026. HKOI notes that questions may go beyond the list. The third column is our method, not HKOI's.
At the Heat, Paper 1 has 25 marks of questions that apply to both languages, and Paper 2 has 20 marks in a Python version and a C++ version, of which the student answers one. So a Junior student can sit the Heat well with Python. At the Final, the rules make C++ the contest language and Python a "2nd-class" one that cannot solve every task.
In 2025/26, 216 Junior students chose Python for Paper 2 and 25 of them reached the Final; 199 chose C++ and 73 reached it. Students who pick C++ are usually the ones with more practice, so we read this as a sign of where experienced students end up, not as proof that the language alone makes the difference.
For an S1 student new to contests we teach the Junior content in Python, because the language is already familiar from school and the attention stays on the idea. From about the second term, we start writing each solution twice, Python then C++, until C++ feels as natural.
Students who want a fuller grounding in the language can read our C++ for beginners page, and parents comparing contests for this age will find the wider picture on our page about coding competitions for middle school students.
A real lesson
Linear search and binary search both sit on the Junior syllabus. This is the task we use to teach them, written by us and not taken from any HKOI paper, and solved twice: once in Python and once in C++.
Our task, "The library shelf". A shelf holds 1,000 books whose catalogue numbers rise from left to right: 10, 17, 24 and so on up to 7003. To find a number you can walk along from the left, or you can look at the middle book and throw away the half that cannot contain it. How many checks does each method need, and is halving always better?
# Our own practice task (Modern Age Coders), not an HKOI problem.
# A school library shelf holds books with catalogue numbers in increasing order.
# How many checks does it take to find a number by walking along the shelf,
# and how many by halving the shelf each time?
shelf = [7 * i + 3 for i in range(1, 1001)] # 1,000 books: 10, 17, 24, ..., 7003
def walk(target):
checks = 0
for pos, book in enumerate(shelf):
checks += 1
if book == target:
return pos, checks
if book > target: # sorted shelf: we have gone past it
break
return -1, checks
def halve(target):
lo, hi, checks = 0, len(shelf) - 1, 0
while lo <= hi:
mid = (lo + hi) // 2
checks += 1
if shelf[mid] == target:
return mid, checks
if shelf[mid] < target:
lo = mid + 1
else:
hi = mid - 1
return -1, checks
for target in [10, 3503, 7003, 3505]:
p1, c1 = walk(target)
p2, c2 = halve(target)
print(f"book {target}: position {p1} after {c1} check(s) walking, position {p2} after {c2} check(s) halving")
worst_walk = max(walk(b)[1] for b in shelf)
worst_halve = max(halve(b)[1] for b in shelf)
print("worst case over all 1000 books: walking", worst_walk, "checks, halving", worst_halve, "checks")Our own program. Run it with python3 shelf.py; it needs nothing beyond Python itself.
// The same task in C++ (our own), to compare line by line with shelf.py
#include <iostream>
#include <vector>
#include <utility>
using namespace std;
vector<int> shelf;
pair<int,int> walk(int target) {
int checks = 0;
for (int pos = 0; pos < (int)shelf.size(); pos++) {
checks++;
if (shelf[pos] == target) return {pos, checks};
if (shelf[pos] > target) break; // sorted shelf: we have gone past it
}
return {-1, checks};
}
pair<int,int> halve(int target) {
int lo = 0, hi = (int)shelf.size() - 1, checks = 0;
while (lo <= hi) {
int mid = (lo + hi) / 2;
checks++;
if (shelf[mid] == target) return {mid, checks};
if (shelf[mid] < target) lo = mid + 1; else hi = mid - 1;
}
return {-1, checks};
}
int main() {
for (int i = 1; i <= 1000; i++) shelf.push_back(7 * i + 3);
for (int target : {10, 3503, 7003, 3505}) {
auto [p1, c1] = walk(target);
auto [p2, c2] = halve(target);
cout << "book " << target << ": position " << p1 << " after " << c1 << " check(s) walking, position "
<< p2 << " after " << c2 << " check(s) halving\n";
}
int worstWalk = 0, worstHalve = 0;
for (int b : shelf) { worstWalk = max(worstWalk, walk(b).second); worstHalve = max(worstHalve, halve(b).second); }
cout << "worst case over all 1000 books: walking " << worstWalk << " checks, halving " << worstHalve << " checks\n";
}The same program in C++, written so each function lines up with its Python twin. Compile with c++ -std=c++17 shelf.cpp -o shelf and run ./shelf.
book 10: position 0 after 1 check(s) walking, position 0 after 9 check(s) halving book 3503: position 499 after 500 check(s) walking, position 499 after 1 check(s) halving book 7003: position 999 after 1000 check(s) walking, position 999 after 10 check(s) halving book 3505: position -1 after 501 check(s) walking, position -1 after 9 check(s) halving worst case over all 1000 books: walking 1000 checks, halving 10 checks
The exact output. We ran both programs and compared their outputs character by character: they are identical.
Halving is not always faster. Book 10 sits first on the shelf, so walking finds it in one check while halving takes nine. Book 3503 sits exactly in the middle, so halving finds it in one check while walking takes 500. The question to ask is never which method is faster in one case but which is faster in the worst case.
Over all 1,000 books the worst walk needs 1,000 checks and the worst halving needs 10. Every time the shelf doubles, walking can need twice as many checks while halving needs only one more. That is the whole idea of logarithmic time, discovered by counting rather than by memorising a formula.
Side by side, the programs show how little changes between Python and C++. The loop, the middle index and the three-way decision are the same; C++ adds types, braces and an explicit pair for the two results. Students usually stop being afraid of C++ during this lesson.
There is also a trap to discuss. The search for 3505 fails, and the walking method stops at 501 checks because it notices it has gone past the place where 3505 would be. Without that early stop it would check all 1,000 books, and in a written Heat question that one line is exactly the kind of detail that changes the answer.
lo, hi and mid while halving searches for the last book. Check your table by adding a print line.halve so it always returns the leftmost copy.The Junior calendar
The 2026/27 Junior Heat has already taken place, and the Final is close. For a student starting now, the real target is the next cycle.
A year sounds long, but for a Junior student it is about the right amount of time. Tracing fluency for the Heat takes a few months of steady practice; writing complete C++ solutions under a judge takes longer. Students with a strong Final already in reach may prefer our C++ classes for teens, and those curious about informatics olympiads beyond Hong Kong can read our IOI training page.
Before secondary school
Yes, a separate one: the Hong Kong Primary Schools Olympiad in Informatics, or HKPSOI, which uses block coding instead of text.
HKPSOI is organised by the Hong Kong Association for Computer Education, the HKOI Organizing Committee and the Modern Educational Research Society. Its introduction page says both rounds use "the Blockly programming language". The Heat is a short online quiz played each day for ten days; the Final gives contestants an hour to solve problems on a tablet computer.
For 2026/27 the Heat runs from Monday 7 December to Friday 18 December 2026, weekends excluded, and the Final is on Saturday 20 February 2027. HKOI notes that the Heat is available only in Chinese.
Block coding builds the same habits that the Junior Group tests: sequence, loops, conditions and careful reading. A P5 or P6 child who enjoys HKPSOI is often ready to start typed Python, which makes S1 a natural year to begin Junior preparation.
Our classes are in English, so for a primary child we teach the same thinking in Scratch or Python rather than coaching the Chinese-only Heat. Our page on Python and AI for kids and teens shows that younger route, and the Hong Kong coding classes page lists every course by age.
Progress
Our own milestones for younger contest students, used to plan lessons and report to parents. They are not HKOI levels.
| Milestone | The student can | How we check |
|---|---|---|
| Exact reader | Say what a 15-line program prints, including edge cases | Five unseen fragments, no mistakes |
| Table keeper | Keep a trace table for loops inside loops | A tidy table that matches a print-out |
| Searcher | Choose linear or binary search and justify it | The shelf lesson extensions |
| Sorter | Explain three sorts and count their swaps | A short talk-through on camera |
| Bilingual coder | Write the same solution in Python and C++ | Identical output from both |
| Finisher | Complete a small task fully against hidden tests | Our own judge-style tests passed |
Predict first, run second.
If the shelf is not sorted, halving lies.
The first milestone matters most for the written Heat.
Ask your child to explain one trace table at home.
More courses
Nine more courses grouped by purpose, each taught in Hong Kong as live one-to-one classes in English.
JR / CODE / 01
The first text language, learned properly.
Open the syllabusJR / CODE / 02
A gentle C++ start for younger learners.
Open the syllabusJR / CODE / 03
Primes, patterns and counting with Python.
Open the syllabusJR / MATH / 01
Counting, number theory and logic puzzles.
Open the syllabusJR / MATH / 02
Timed contest problems for younger students.
Open the syllabusJR / MATH / 03
Pre-algebra and geometry, done thoroughly.
Open the syllabusJR / MORE / 01
For international-school students on 0478.
Open the syllabusJR / MORE / 02
Web and AI projects, checked line by line.
Open the syllabusJR / MORE / 03
For a younger sibling starting with blocks.
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
Mid-afternoon for the mentor, so a weekday lesson is easy to place.
Weekend
A calm hour for a longer task or a mock Heat paper of our own.
School holidays
Extra lessons in a holiday week, if your child wants them.
One coach follows your child from the first trace table onwards.
Heat skills are practised by hand, on camera.
Python first, then the same idea in C++.
Practice written by our mentors, never copied from HKOI.
Ten to twenty minutes, so school work comes first.
A few lines after classes on progress and next steps.
Student work
Projects from students in our longer courses in several countries. See 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 charged by the month and shown in Hong Kong dollars. You pay one month, then the next, with nothing paid in advance for a whole season. If a payment gateway adds a charge, you see it at checkout before paying.
Free first class
Free
no card required
One to one
$1,200 HKD
a month, eight live classes
What families say
What parents and students wrote on Google, unedited.
★★★★★
"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
Junior questions
It is the younger of the two HKOI groups, for students with more than two years of secondary school left (usually S1 to S4) who meet the birth-date rule. For 2026/27 that means born on or after 1 July 2010.
Only through their school. HKOI accepts nominations from registered day secondary schools in Hong Kong, so speak to the ICT teacher. We cannot nominate anyone, and HKOI charges no fee.
Not necessarily. HKOI says so in its FAQ, and in 2025/26 the Junior cut-off for the Final was 25.0 out of 45, higher than the Senior cut-off of 21.5.
Yes. S1 is a good time. The 2026/27 pilot also keeps two of each school's eight Junior places for S1 to S3 students, which gives younger students a better chance of being nominated.
Python is fine for the Heat, which has a Python version of Paper 2. For the Final, HKOI makes C++ the main language, so we move students into C++ during their first year with us.
No. We coach the skills and give honest feedback. Results depend on the student and on HKOI's judging, and we never promise them.
Yes, live and online, by mentors based in India. We do not teach in Cantonese or Putonghua. Mentors speak clearly and type key terms in the chat for younger students.
Yes. For Hong Kong families we only teach one to one, with one mentor for your child in every class.
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. India runs 2 hours 30 minutes behind Hong Kong all year, so a 4:30 pm lesson for your child starts at 2:00 pm for the mentor.
Some. The Junior syllabus lists primes, counting, modular arithmetic, Boolean algebra and Pythagoras' theorem. We teach these alongside the coding, through short puzzles.
Monthly, shown in Hong Kong dollars, one month at a time. Any gateway charge appears before you confirm payment.
Related
Pages Junior families often open next.
Every Hong Kong course, by age.
Other contests for ages 11 to 14.
The language the Final expects.
For the maths side of the syllabus.
Why we ask students to explain before they run code.
Inside a live one-to-one lesson.
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 child's form, school curriculum and any coding they have done. In the free class the mentor asks your child to trace a short program and try a small search task, then suggests a starting point, all live and one to one.
Curious first? How we teach walks through a class, and the full course list is on our courses page.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Taught live online in English by mentors based in India. WhatsApp in English gets the quickest answer.
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