This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingConcept theory, tags and interview notes for GCD / LCM (Euclid).
What this asks
Find the GCD and LCM of two numbers with Euclid's algorithm.
Replace (a, b) with (b, a % b) until the remainder is zero; get the LCM by dividing before multiplying.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing