about | help | code help+videos | done | prefs |
Summer olympics are held on years that are divisible by 4. Winter olympics are held on the other even years. No olympics are held on the odd years. Given a year, return which olympics will be held that year, either "winter", "summer", or "none". whichOlympics(2014) → "winter" whichOlympics(2016) → "summer" whichOlympics(2015) → "none" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy