You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let them know that the most important thing to do here is not to try to code first, but to know how the maths behind this exercise is and how to solve it on paper.
6
+
You can use this [website][reference-math-website] to explain it.
7
+
Next they can go ahead and take what they wrote down and try to put it in a coding logic.
8
+
Lastly, they can go and put their written solution to a code now.
9
+
10
+
They should always use this approach before start to code, so coding become only a tool for the solution.
11
+
12
+
```dart
13
+
import 'dart:math';
14
+
class ArmstrongNumbers{
15
+
bool isArmstrongNumber(int number) => number == number.toString()
0 commit comments