leetle

Daily challenge for 2026-10-01

639. Gear Ratio Simplifier

You are designing a mechanical transmission system. Given two positive integers teethA and teethB representing the tooth counts of two connected gears, return a list [reducedA, reducedB] representing the gear ratio in its most simplified fractional form (i.e. divided by their greatest common divisor).

Example:
Input: teethA = 24, teethB = 36
Output: [2, 3]

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