6 kyu

Build Tower

42,652 of 106,5998fdafs2

Description:

Build Tower

Build a pyramid-shaped tower, as an array/list of strings, given a positive integer number of floors. A tower block is represented with "*" character.

For example, a tower with 3 floors looks like this:

[
  "  *  ",
  " *** ", 
  "*****"
]

And a tower with 6 floors looks like this:

[
  "     *     ", 
  "    ***    ", 
  "   *****   ", 
  "  *******  ", 
  " ********* ", 
  "***********"
]

Go challenge Build Tower Advanced once you have finished this :)

Strings
ASCII Art
Fundamentals

Similar Kata:

More By Author:

Check out these other kata created by 8fdafs2

Stats:

CreatedJun 20, 2016
PublishedJun 20, 2016
Warriors Trained206031
Total Skips34469
Total Code Submissions334415
Total Times Completed106599
Python Completions42652
JavaScript Completions35397
C# Completions6973
PHP Completions3918
C++ Completions6773
Haskell Completions1047
Ruby Completions2033
Lua Completions253
CoffeeScript Completions17
Julia Completions62
Crystal Completions15
TypeScript Completions2123
Java Completions3951
C Completions774
Rust Completions806
Go Completions929
D Completions8
Factor Completions11
Swift Completions211
Total Stars3047
% of votes with a positive feedback rating91% of 8868
Total "Very Satisfied" Votes7479
Total "Somewhat Satisfied" Votes1251
Total "Not Satisfied" Votes138
Total Rank Assessments14
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • 8fdafs2 Avatar
  • jhoffner Avatar
  • omegahm Avatar
  • donaldsebleung Avatar
  • ParanoidUser Avatar
  • Chrono79 Avatar
  • Dentzil Avatar
  • kazk Avatar
  • user5036852 Avatar
  • lvsz Avatar
  • mtvoodoo Avatar
  • Varveyn Avatar
  • Voile Avatar
  • MartinQc Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • solitude Avatar
  • trashy_incel Avatar
  • user8436785 Avatar
  • Saladin Avatar
  • lsnbr Avatar
  • ejini战神 Avatar
  • theDissilent Avatar
  • akar-0 Avatar
Ad