Illuminati Initiation (retired)
Description:
The illuminati is a secret society that operates in the dark. Most of their staff are old dinosaures, this is where you come in! You are the new initiate that has just been recuited by The illuminati.
Looking for new ways to expand they're presence secretly, they put you in charge of inserting their "secret" symbol into multimedia.
What you have to do is no mere easy task.
Create a function that will draw a triangle.
Task
the function takes in a
integer
that will define the height of the triangle's output.That
return
the triangle as astring
.The triangle has to be constituted of small
o
.If the passed paramater is not a positive integer, return a string
"illuminati is fake"
.The returned string must contain spaces
" "
in hollow around theo
except for the base.Each line must contain a new line
\n
except for the base. (so that anyone else trying to you use it can't trace it back to the secret society)TriangleGen(3)
will return a string containing the following:
o
ooo
ooooo
Similar Kata:
Stats:
Created | May 31, 2016 |
Warriors Trained | 199 |
Total Skips | 0 |
Total Code Submissions | 133 |
Total Times Completed | 15 |
JavaScript Completions | 15 |
Total Stars | 3 |
% of votes with a positive feedback rating | 10% of 5 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 1 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 5 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |