7 kyu
Friday the 13th Part 1
126 of 1,288BurstNova
Description:
It's Friday the 13th, and Jason is ready for his first killing spree!
Create a function, killcount, that accepts two arguments: an array of array pairs (the conselor's name and intelligence - ["Chad", 2]) and an integer representing Jason's intellegence.
Ruby, Python, Crystal:
counselors = [["Chad", 2], ["Tommy", 9]]
jason = 7
JavaScript:
var counselors = [["Chad", 2], ["Tommy", 9]];
var jason = 7;
PHP:
$counselors = [["Chad", 2], ["Tommy", 9]];
$jason = 7;
Your function must return an array of the names of all the counselors who can be outsmarted and killed by Jason.
Happy Friday the 13th!
Fundamentals
Arrays
Similar Kata:
Stats:
Created | May 24, 2017 |
Published | May 24, 2017 |
Warriors Trained | 1774 |
Total Skips | 51 |
Total Code Submissions | 3578 |
Total Times Completed | 1288 |
Ruby Completions | 126 |
JavaScript Completions | 547 |
Python Completions | 471 |
PHP Completions | 140 |
Crystal Completions | 12 |
C# Completions | 77 |
Total Stars | 11 |
% of votes with a positive feedback rating | 89% of 331 |
Total "Very Satisfied" Votes | 268 |
Total "Somewhat Satisfied" Votes | 54 |
Total "Not Satisfied" Votes | 9 |
Total Rank Assessments | 14 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |