leetle

Daily challenge for 2025-08-13

225. Inventory Tetris Packer

Write a function solve that calculates if rectangular items can fit in a container. Given container dimensions [width, height] and items [[w1,h1], [w2,h2], ...], return True if all items fit (rotation allowed).

Example:
Input: container = [5, 4], items = [[2,3], [3,2], [1,1]]
Output: True

Run this challenge interactively in Python or JavaScript when the app loads.