6 kyu
Handshake problem
127 of 13,406Laurynas Lazauskas
Description:
Johnny is a farmer and he annually holds a beet farmers convention "Drop the beet".
Every year he takes photos of farmers handshaking. Johnny knows that no two farmers handshake more than once. He also knows that some of the possible handshake combinations may not happen.
However, Johnny would like to know the minimal amount of people that participated this year just by counting all the handshakes.
Help Johnny by writing a function, that takes the amount of handshakes and returns the minimal amount of people needed to perform these handshakes (a pair of farmers handshake only once).
Algorithms
Similar Kata:
Stats:
Created | Jun 7, 2015 |
Published | Jun 7, 2015 |
Warriors Trained | 25955 |
Total Skips | 1024 |
Total Code Submissions | 44492 |
Total Times Completed | 13406 |
Ruby Completions | 127 |
JavaScript Completions | 9710 |
Python Completions | 1793 |
C# Completions | 374 |
Java Completions | 644 |
C Completions | 295 |
CoffeeScript Completions | 17 |
Julia Completions | 25 |
Crystal Completions | 9 |
R Completions | 49 |
Go Completions | 91 |
COBOL Completions | 12 |
TypeScript Completions | 135 |
Haskell Completions | 29 |
Rust Completions | 62 |
D Completions | 7 |
SQL Completions | 433 |
Total Stars | 244 |
% of votes with a positive feedback rating | 85% of 890 |
Total "Very Satisfied" Votes | 691 |
Total "Somewhat Satisfied" Votes | 139 |
Total "Not Satisfied" Votes | 60 |
Total Rank Assessments | 29 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |