6 kyu

String average

1,837 of 4,272jc66

Description:

You are given a string of numbers between 0-9. Find the average of these numbers and return it as a floored whole number (ie: no decimal places) written out as a string. Eg:

"zero nine five two" -> "four"

If the string is empty or includes a number greater than 9, return "n/a"

Strings
Algorithms

More By Author:

Check out these other kata created by jc66

Stats:

CreatedJul 12, 2017
PublishedJul 12, 2017
Warriors Trained6274
Total Skips470
Total Code Submissions24435
Total Times Completed4272
JavaScript Completions1837
Haskell Completions77
Ruby Completions205
Python Completions1371
C# Completions419
PHP Completions462
Total Stars85
% of votes with a positive feedback rating93% of 874
Total "Very Satisfied" Votes768
Total "Somewhat Satisfied" Votes97
Total "Not Satisfied" Votes9
Total Rank Assessments11
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • jc66 Avatar
  • GiacomoSorbi Avatar
  • donaldsebleung Avatar
  • JohanWiltink Avatar
  • Voile Avatar
  • Souzooka Avatar
  • hobovsky Avatar
  • user8436785 Avatar
  • Just4FunCoder Avatar
  • saudiGuy Avatar
Ad