About This Pattern
Master the Math / Simulation pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.
Easy (1)
Plus One
Add one to a number represented as an array of digits.
Key Signals:
Handle carryIterate from endExtend if needed
Medium (1)
Multiply Strings
Multiply two non-negative numbers represented as strings.
Key Signals:
Digit by digit multiplicationPosition calculationHandle carries
Hard (1)
Integer to English Words
Convert a non-negative integer to its English words representation.
Key Signals:
String constructionGrouping by thousandsEdge cases