Skip to content

richielee/fillit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fillit

Penultimate project before branching out.

Given an array of Tetrominos, the programme will return the smallest square that would contain all the Tetrominos.

Example input:

....$
##..$
.#..$
.#..$
$
....$
####$
....$
....$
$
#...$
###.$
....$
....$
$
....$ 
##..$ 
.##.$ 
....$ 

Output:

DDAA$ 
CDDA$ 
CCCA$ 
BBBB$ 

Where 'A', 'B', 'C' and 'D' represent the order of the Tetrominos.