HackerEarth conducted its annual Collegiate Cup, welcoming programming enthusiasts from across the globe to compete for the title of best collegiate programmers.
The contest featured five rounds. Teams of three, from any region, could participate and compete for the coveted title and prize.
Round 1: Let the game begin
Held on September 3, 2016, this was a 24-hour online qualifier with three sets of problems, modeled on the ICPC contest format. From 1885 teams, 755 advanced by solving at least one problem set.

Round 2: The first elimination round
On September 18, 2016, only the top 3 teams from each college moved forward from this three-hour online contest. A total of 755 teams competed by solving 5 problems.

Round 3: Wild card entry round
Held on October 2, 2016, this round gave five new teams a chance to re-enter the competition. 318 teams battled in a three-hour contest solving challenging problems.

Round 4: Second elimination round
214 teams competed in a five-hour contest with 10 problems. The top 20 teams (15 from India and 5 international) were invited for the onsite final in Bengaluru, India, with travel expenses covered by HackerEarth.

The Final Round
Held on November 5, 2016, at HackerEarth, Bengaluru. The final round consisted of:
- The onsite round for 15 Indian teams
- The Mirror round for 5 international teams
Each team tackled 12 problems in a five-hour contest.

Sample Onsite Problem:
Given 2×N pebbles of N different colors (2 pebbles per color), arrange them on an infinite 2D table with the constraint that a pebble of color X placed at (X,Y) must satisfy Y ≠ X and another pebble of color Y exists. Find the minimum cost of enclosing the arrangement with ribbon, sold in whole units at cost M per unit.
Solution available here.
Another Problem:
Given an array A of length N, count the number of non-empty subarrays such that the sum of elements in each subarray is a palindrome. Find the number of pairs (i, j) where the sum A[i] + ... + A[j] is a palindrome.
Try the solution at palindromic sum editorial.
Top 3 Onsite Teams:
- Team FacelessMen – IIT Kanpur – alecsyde, TerryMcGinnis, Sahilgrover
- Team FruitSalad – DAIICT – yashkumar18, kuldeeppatel, Sumeet.Varma
- Team mobius_treap – IIIT Hyderabad – vmrajas, tanujkhattar, itsalways42
Top 3 Mirror Round Teams:
- Team Jinotega – MIPT – Arterm, zemen, ifsmirnov
- Team VietAnplusplus – Ho Chi Minh City University of Science – tanphatls987, phvietan, TGod2401
- Team Frogless – Kiev National Taras Shevchenko University – mgch, ballon, Fdg

- 5665 programmers
- 1885 teams
- 200 universities
- 10 countries
- 5 grueling rounds
- 1 coveted title
The competition was intense, yet participants appreciated the HackerEarth platform as a valuable tool for learning and practice.
"Greeaaat!! Problem set was awesome, would love to upsolve them with editorials. HackerEarth has a really nice workplace :) Everything was well managed, we didn't face any glitches. T-shirts were awesome!!! Keep it every year XD" – Arun Yadav
Find it interesting? Try similar challenges at HackerEarth Challenges.