Snap | Phone | Letterbox or Pillarbox in 2d image
Anonymous User
1368

Asked about my project and some design decisions and tradeoff.

Coding question was to check if a 2d image(array) is letterbox or pillarbox. So idea was to check if the width of black section on top and bottom is same and categorize as letterbox or do the same on side section and categorzie as pillarbox. Also handle some edge cases and demonstrate with tests.
Question was easy but still got rejected, maybe because I didn't implement it fast enough and fumbled with some edge cases before completing it.

Comments (4)