Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

usneil/creditsuissecit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

it's CodeIT Suisse 2020!

Deploy to Heroku or test it on Glitch

Introduction

As someone who just began doing competitive programming questions, this 24H challenge is disturbingly a great cause to make you an insane person for one whole day pun intended. Unlike Codeforces and Codechef, you are not only have to figure out the more efficient algorithms for each respective problems, but you have setup and deploy your code (in my case it's python and wrap it with flask and gunicorn) to Heroku and at the least had to make sure you are treating the corrent input (JSON or text) and lastly jsonify the return value.

Too bad but not too bad, I managed to fight up the ladder and ended up at the 11th pos of the individual Hong Kong leaderboard. For you who are in the penultimate year and below, this challenge is definitely a yes yes.

Afterwards..

(*) Disclaimer: After a while since the competition ended, I decided to do a full documentation out of my interest to complete the questions that I unable to finish. If any of from the Credit Suisse organizer express concerns regarding copyright issues, please let me know.

Credits: To make it quick, I decided to source from other participants' solutions, so kudos to:

(*) The accuracy of each solution might not be hundred-percent correct, since there are hidden testcases untested.

Example Usage

These instruction are to help you solve a test challenge "Calculate Square". Instruction to this test challenge can be found at https://calculate-square.herokuapp.com/instructions

Step by step

As per the instruction you have to implement a post endpoint /square

  • Go to square.py under codeitsuisse/routes folder in this template and you will find a post method with name /square
  • write your implementation in this method. This method will be the entry point when you submit your solution for evaluation
  • Note the init.py file in each folder. This file makes python treat directories containing it to be loaded in a module
  • Follow similar approach to implement actual challenges during the event

List of endpoints

Besides /square there are 20 others respective to each problem statements. They are:

  • /bored-scribe
  • /bucket-fill
  • /clean_floor
  • /cluster
  • /contact_trace
  • /encryption
  • /fruitbasket
  • /intelligent-farming
  • /olympiad-of-babylon
  • /optimizedportfolio
  • /revisitgeometry
  • /salad-spree
  • /slsm
  • /social_distancing
  • /supermarket
  • /swaphedge
  • /yin-yang

About

CodeIT 2020 Suisse coding challenge

Topics

Resources

Stars

Watchers

Forks