Definition at line 5 of file main.cpp.
◆ addDigits()
| int Solution::addDigits |
( |
int |
num | ) |
|
|
inline |
Definition at line 8 of file main.cpp.
9 {
10 return 1 + (num - 1) % 9;
11 }
Referenced by main().
The documentation for this class was generated from the following file: