Shopify Interview Question

System design problem: Build a solution to manage rare books in a library. Create a condition report based on the condition of the book during last return. Compare last 10 scanned images of the book to determine the most recent condition

Interview Answer

Anonymous

Jun 5, 2021

The trick requirement is comparing the last 10 images. These are HD images, so comparing the last 10 images each time result in significant I/O operations, so the solution is to assign a value per image at the time of scan and only using that score vs retrieving the image itself every time

1