Algorithm Problem Archive

A personal archive documenting my journey through advanced algorithmic problem solving, featuring curated problems from CCC,CCO, IOI, and USACO, along with detailed explanations, solution strategies, and refined code implementations in C++ or Java or Python
  • CCC ’18 S1 – Voronoi Villages

    Canadian Computing Competition: 2018 Stage 1, Senior #1 In the country of Voronoi, there are  villages, located at distinct points on a straight road. Each of these villages will be represented by an integer position along this road. Each village defines its neighbourhood as all points along the road which are closer to it than to any other…

  • CCC ’15 J4 – Wait Time

    Canadian Computing Competition: 2018 Stage 1, Junior #4, Senior #2 Barbara plants  different sunflowers, each with a unique height, ordered from smallest to largest, and records their heights for  consecutive days. Each day, all of her flowers grow taller than they were the day before. She records each of these measurements in a table, with one row…

  • GFSSOC ’15 Fall S2 – Hearth

    One of Calvin’s favourite pastimes is playing Super-Hearthstone with his friends! In Super-Hearthstone, mana crystals are used to play spells and creatures. Each card has a cost, which when played will expend that many mana crystals. Of course, you cannot play a card if you do not have enough of these crystals. Now, Calvin is…