6 kyu
ASCII Fun #1: X- Shape
577 of 1,610zruF
Description:
You will get an odd integer n
(n >= 3
) and your task is to draw an X. The lines are separated by newlines (\n
).
Use the following characters: '■'
and '□'
(Ruby, Crystal and PHP: 'o'
and ' '
).
Examples
■□□□■
■□■ □■□■□
x(3) => □■□ x(5) => □□■□□
■□■ □■□■□
■□□□■
Series: ASCII Fun
ASCII Art
Similar Kata:
Stats:
Created | Apr 30, 2017 |
Published | May 2, 2017 |
Warriors Trained | 2904 |
Total Skips | 57 |
Total Code Submissions | 4244 |
Total Times Completed | 1610 |
JavaScript Completions | 577 |
CoffeeScript Completions | 7 |
Python Completions | 672 |
Ruby Completions | 64 |
Crystal Completions | 7 |
C# Completions | 158 |
Julia Completions | 20 |
PHP Completions | 60 |
C Completions | 66 |
Haskell Completions | 19 |
Go Completions | 29 |
Rust Completions | 36 |
D Completions | 4 |
Factor Completions | 6 |
Pascal Completions | 5 |
Total Stars | 52 |
% of votes with a positive feedback rating | 95% of 353 |
Total "Very Satisfied" Votes | 321 |
Total "Somewhat Satisfied" Votes | 29 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 11 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |