Daily challenge for 2025-08-17
229. Photo Collage Layout Optimizer
Write a function solve that arranges rectangular photos to minimize wasted space. Given canvas size [W, H] and photo dimensions [[w1,h1], [w2,h2], ...], return True if all photos can fit without overlap.
Example:Input: canvas = [4, 4], photos = [[2,2], [2,2]]Output: True (both 2x2 photos fit in 4x4 canvas)
Run this challenge interactively in Python or JavaScript when the app loads.