MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / mindsum

Method mindsum

CodeChef_problems/MINDSUM/solution.cpp:57–64  ·  view source on GitHub ↗

this function adds numer N to a map and initialized the values of class members. */

Source from the content-addressed store, hash-verified

55public:
56 /*this function adds numer N to a map and initialized the values of class members. */
57 mindsum(ll _n, ll _d) {
58 n = _n;
59 d = _d;
60 min = n;
61 op = 0;
62 op_min = 0;//LONG_MAX;
63 oc.insert({{n,false}});
64 }
65
66 void findMinSum() {
67 recurse(digitsum(n),1);

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected