HF RL Explorer

Rectangle Scaling Algorithm

Rectangle Scaling Algorithm: a task in Terminal-Lego-15k (Harbor dataset). Implement a command-line program that calculates the maximum scale factor to fit a source rectangle within a destination rectangle while maintaining the original aspect ratio.

The task

Implement a command-line program that calculates the maximum scale factor to fit a source rectangle within a destination rectangle while maintaining the original aspect ratio.

Part of PrimeIntellect/Terminal-Lego-15k.