Is this a tetromino? – codegolf.stackexchange.com

Given an unsigned 16-bit integer N, your task is to determine whether its binary representation mapped inside a 4×4 matrix is matching a tetromino shape, and if so, which shape it is.

Matrix

Each …

For Get Answer – Click here

Leave a Reply

Your email address will not be published. Required fields are marked *