Perse Coding Cup Practice Material

Starts in


Practice your skills here on some specimen questions.


There are no prizes for the practice material but there is a cup and prizes for the winning team in the cup challenge event in the spring.


  • The creator of this contest is solely responsible for setting and communicating the eligibility requirements associated with prizes awarded to participants, as well as for procurement and distribution of all prizes. The contest creator holds HackerRank harmless from and against any and all claims, losses, damages, costs, awards, settlements, orders, or fines.
  • Code directly from our platform, which supports over 30 languages. Learn more here.

You can use this practice material how you like but a summary of the rules for the main competition are as follows. The main rules are given on the Competition Format page on our website

  • teams of four from year 10 and below with a maximum of two Year 10 students
  • a teacher must supervise and time your main competition submission
  • you will have no access to internet search but can use defined main language reference APIs and documentation
  • you may also take copies of up to 20 sides (10 double sided pages) of code snippets into the exam
  • you will be allowed 10 mins discussion time (no notes taken) and then split into pairs for 50 mins on the computers taking some questions each as you see fit
  • you are expected to divide the questions between your team as you see best in order to achieve the maximum number of points in the time allowed
  • all submissions must be made within the hour
  • submissions must complete execution within 4 seconds of running time
  • no communication is allowed between the pairs after the division but (through the invigilator) a maximum of one question is allowed to be passed between the two pairs if needed


  • Each challenge has a pre-determined maximum score based on its level of difficulty (10/20/30/40 points for Levels 1-4 respectively)
  • A team’s score depends on the number of test cases a tean’s code submission successfully passes.
  • If a team submits more than one solution per challenge then the team's score will reflect their best code submission.
  • Teams are ranked by score. If two or more teams achieve the same score, then the tie is broken by the number of points achieved on the Level 4 questions and if that is also equal, by the numbers of submissions needed to achieve those points (where less is better).

Sign up for Perse Coding Cup Practice Material now.

Not a genuine coding contest?