Calculates the sum of the digits*/
| 27 | unordered_map <ll,bool> :: iterator it; |
| 28 | /*Calculates the sum of the digits*/ |
| 29 | ll digitsum(ll k) { |
| 30 | ll res = 0; |
| 31 | while (k) { |
| 32 | res += k%10; |
| 33 | k = k/10; |
| 34 | } |
| 35 | return res; |
| 36 | } |
| 37 | /*Recursively calls the valid operations i.e. digitsum(N) or N+D */ |
| 38 | void recurse(ll m, ll count) { |
| 39 | if(min > m ){ |
nothing calls this directly
no outgoing calls
no test coverage detected