Codewars Leaderboard Climber
Description:
We all want to climb the leaderboard. Even given some of the massive scores on there, it's nice to know how close you are...
In this kata you will be given a username and their score, your score (not your real score) and you need to calculate how many kata you need to complete to beat their score, by 1 point exactly.
As this is the easy version (harder one to folow at some point in the future), let's assume only Beta kata and 8kyu kata are available. Worth 3 and 1 point respectively.
Return a string in this format: "To beat <user>'s score, I must complete <x> Beta kata and <y> 8kyu kata."
If the total number of kata you need to complete >1000, add "Dammit!"
to the end of the string, like so: "To beat <user>'s score, I must complete <x> Beta kata and <y> 8kyu kata. Dammit!"
If your score is higher than the user's already, return "Winning!"
and if they are equal, return "Only need one!"
Note: You are looking to complete as few kata as possible to get to your target.
Similar Kata:
Stats:
Created | Sep 9, 2016 |
Published | Sep 9, 2016 |
Warriors Trained | 2280 |
Total Skips | 81 |
Total Code Submissions | 4786 |
Total Times Completed | 1228 |
JavaScript Completions | 418 |
C# Completions | 125 |
Kotlin Completions | 194 |
Java Completions | 228 |
Ruby Completions | 48 |
Python Completions | 273 |
Total Stars | 30 |
% of votes with a positive feedback rating | 84% of 275 |
Total "Very Satisfied" Votes | 201 |
Total "Somewhat Satisfied" Votes | 60 |
Total "Not Satisfied" Votes | 14 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |