Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add size gap/lead for code golf #19

Merged
merged 1 commit into from
Nov 6, 2017
Merged

Conversation

d-s-x
Copy link
Contributor

@d-s-x d-s-x commented Nov 6, 2017

This PR adds 3 new columns to code golf puzzles: Code Size, Gap and Lead
screenshot 2017-11-06 11-19-00

Gap is difference between current and previous rank; lead is difference between current and next rank;
(not sure if captions are clear enough)

Gap N means that the player has to shave off N symbols to catch up with rank-1 player.
Lead N means that rank+1 player has to shave off N symbols to catch up with the player.

On the screenshot I'm 2nd in Javascript, both gap and lead are equal to 0. That means that 1st and 3rd ranks are at the same code size.

@@ -141,10 +141,7 @@ app.get('/search*', function(req, res) {
.then(function(responses) {
var users = responses.map(function(response) {
return response.users;
})
.reduce(function(a, b) {
return a.concat(b);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to concat language stats into single array. Having the stats as array of array allows to use findIndex instead of foreach.

@dreignier
Copy link
Owner

If you feel that the column title is not clear enough, you can add an html title with a clear explanation. I used it for the 95% confidence interval.

@dreignier dreignier merged commit f41471b into dreignier:master Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants