7 kyu
KISS - Keep It Simple Stupid
627 of 1,194j_codez
Description:
KISS stands for Keep It Simple Stupid. It is a design principle for keeping things simple rather than complex.
You are the boss of Joe.
Joe is submitting words to you to publish to a blog. He likes to complicate things.
Define a function that determines if Joe's work is simple or complex.
Input will be non emtpy strings with no punctuation.
It is simple if:
the length of each word does not exceed the amount of words in the string
(See example test cases)
Otherwise it is complex.
If complex:
return "Keep It Simple Stupid"
or if it was kept simple:
return "Good work Joe!"
Note: Random test are random and nonsensical. Here is a silly example of a random test:
"jump always mostly is touchy dancing choice is pineapples mostly"
Strings
Fundamentals
Similar Kata:
Stats:
Created | Sep 30, 2016 |
Published | Sep 30, 2016 |
Warriors Trained | 1695 |
Total Skips | 34 |
Total Code Submissions | 3327 |
Total Times Completed | 1194 |
Python Completions | 627 |
JavaScript Completions | 573 |
Clojure Completions | 33 |
Total Stars | 12 |
% of votes with a positive feedback rating | 89% of 276 |
Total "Very Satisfied" Votes | 224 |
Total "Somewhat Satisfied" Votes | 46 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |