bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
EasyMath & GeometryLC 1134

Armstrong Number

Given an integer n, return true if and only if it is an Armstrong number. The k\-digit number n is an Armstrong number if and only if the kth power of each digit sums to n.

Asked at 1 company
Amazon
Hints
  • 1.Think about which data structure fits best
  • 2.Consider the time complexity of your approach
  • 3.Look for patterns in the constraints
LeetCode