Digit manipulation [mp]
Micro pattern¶
Description¶
Extract, transform, combine, or emit positional digits without converting the complete number to another representation.
Problems¶
Decimal digits¶
Use division and remainder or digit parsing to process decimal positions.
- 7. Reverse Integer (Top Easy)
- 8. String to Integer (atoi) (Top Easy)
- 66. Plus One (Top Easy)
- 202. Happy Number (Top Medium)
- 166. Fraction to Recurring Decimal (Top Medium)
- 227. Basic Calculator II (Top Hard)
Positional symbols¶
Interpret alphabetic symbols according to a numeral system's rules.
- 171. Excel Sheet Column Number (Top Medium)
- 13. Roman to Integer (Top Easy)