leaps.ggTRACK YOUR MASTERY →
PROBLEMS/MATH & GEOMETRY/GCD / LCM

GCD / LCM Problems

29 GCD / LCM problems on LeetCode, a Math & Geometry interview pattern, ranked by importance (how often it comes up in real interviews). Difficulty (ELO) and importance shown per problem.

#PROBLEMDIFFELOIMPPATTERNS
1Greatest Common Divisor of StringsEasy139872
Frequency Counting / Hash Map Lookup
2Insert Greatest Common Divisors in Linked ListEasy127962
Merge Linked Lists
3X of a Kind in a Deck of CardsEasy137148
Frequency Counting / Hash Map Lookup
4Find the Maximum Factor Score of ArrayMedium151947
Prefix Sums
5Minimum Number of Operations to Make All Array Elements Equal to 1Hard192947
General Greedy (Greedy is main insight)
+ 24 more GCD / LCM problems, see all in the explorer →
MORE MATH & GEOMETRY PATTERNS
General MathModular ArithmeticGCD / LCMPrimes / Sieve of EratosthenesCombinatorics
// your mastery
Bronze tier crystalSilver tier crystalGold tier crystalPlatinum tier crystalDiamond tier crystal
What's your GCD / LCM tier?

leaps.gg syncs your LeetCode history, scores your GCD / LCM mastery, and recommends exactly which problems to do next with spaced repetition. Free to start.

GET MY MASTERY MAP →