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
counselors = [["Chad", 2], ["Tommy", 9]]
jason = 7
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.

alt text

Happy Friday the 13th!

Fundamentals
Arrays

Similar Kata:

More By Author:

Check out these other kata created by BurstNova

Stats:

CreatedMay 24, 2017
PublishedMay 24, 2017
Warriors Trained1774
Total Skips51
Total Code Submissions3578
Total Times Completed1288
Ruby Completions126
JavaScript Completions547
Python Completions471
PHP Completions140
Crystal Completions12
C# Completions77
Total Stars11
% of votes with a positive feedback rating89% of 331
Total "Very Satisfied" Votes268
Total "Somewhat Satisfied" Votes54
Total "Not Satisfied" Votes9
Total Rank Assessments14
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • BurstNova Avatar
  • GiacomoSorbi Avatar
  • smolen Avatar
  • adrian.eyre Avatar
  • Shahraiz19 Avatar
  • Souzooka Avatar
  • hobovsky Avatar
  • saudiGuy Avatar
Ad