Tag Archives: code challenge

Solving a HackerRank algorithm problem – Matrix Layer Rotation

Matrix Layer Rotation

I enjoy solving interesting HackerRank algorithm problems.  I came across one recently called Matrix Layer Rotation – appropriately labeled “hard” by the author.

I posted my solution as a playground on GitHub.

The problem is to print out a rotated representation of a m x n  matrix given the parameters:

m – number of rows
n – number of columns
r – number of rotations

Looking at the constraints

2 <= m, n <= 300
1 <= r <= 10^^9
min(m,n) % 2 = 0

Continue reading


Image manipulation using view transitions and transforms

Image Manipulation

I recently took on a code challenge that was delivered in an interesting fashion.   I was given a video that showed the manipulation of two images and was asked to create an iOS app that had the same behavior as the video.




After watching the video (many times), I extracted the following requirements for my app:

Continue reading