6 kyu

String average

1,855 of 4,318jc66

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 Trained6335
Total Skips470
Total Code Submissions24577
Total Times Completed4318
JavaScript Completions1855
Haskell Completions77
Ruby Completions206
Python Completions1389
C# Completions423
PHP Completions468
Total Stars86
% of votes with a positive feedback rating93% of 885
Total "Very Satisfied" Votes777
Total "Somewhat Satisfied" Votes99
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