Part 1: DSA coding, Minimizing Delivery-Grid Inconvenience
A binary grid marks delivery centers with 1 and all other cells with 0. Distance between cells is Chebyshev distance, the larger of their absolute row and column differences. Grid inconvenience is the maximum, across all zero cells, of the distance to the nearest center. Convert at most one zero cell to one and minimize the resulting inconvenience.
I used BFS in eight directions plus binary search to find the smallest achievable distance. On one test, my solution returned zero and failed.
Part 2: AI-assisted coding, Movie DB
It used Django, and the main bugs were in the search results. I found a mistake in the api/search handler and some missing Q filters. I did not finish the rest.
Part 3: Work simulation
Some questions asked me to choose the most effective architecture or component for a project and its requirements.
Discussion
Loading comments…