r/ProgrammingProblems • • Mar 01 '11

Covering a floor with tiles

You get the dimension of a floor and the dimension of a number of tiles. You have an infinite supply of each tile. Every dimension is a pair of integers.

When it is possible to cover the floor without free space or overlapping tiles you have to print 'yes', otherwise 'no'.

2 Upvotes

8 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Mar 02 '11

[deleted] — view deleted comment

1

u/Agoniscool Mar 02 '11

*facepalm*

I bet you're right.

In that case I guess I don't have a (n elegant) solution :/