Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhubbardsf/easy-rektangles
https://github.com/jhubbardsf/easy-rektangles
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jhubbardsf/easy-rektangles
- Owner: jhubbardsf
- Created: 2016-07-18T21:56:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-19T05:47:01.000Z (over 8 years ago)
- Last Synced: 2024-05-01T13:06:33.784Z (10 months ago)
- Language: Ruby
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Easy-Rektangles
Daily programming challenge.
## Challenge Description
There is a crisis unfolding in Reddit. For many years, Redditors have continued to evolve sh*tposting to new highs, but it seems progress has slowed in recent times. Your mission, should you choose to accept it, is to create a state of the art rektangular sh*tpost generator and bring sh*tposting into the 21st century.
Given a word, a width and a length, you must print a rektangle with the word of the given dimensions.
## Challenge Formal Inputs & Outputs
Input description
The input is a string `word`, a `width` and a `height`
## Challenge Examples
* Input: REKT, 1, 1
Output:
```
R E K T
E K
K E
T K E R
```* Input: REKT, 2, 2
Output:
```
R E K T K E R
E K E
K E K
T K E R E K T
K E K
E K E
R E K T K E R`
```## Challenge URL
[URL for Challenge](https://www.reddit.com/r/dailyprogrammer/comments/4tetif/20160718_challenge_276_easy_recktangles/)