Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jhubbardsf/easy-rektangles


https://github.com/jhubbardsf/easy-rektangles

Last synced: 15 days ago
JSON representation

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/)