Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void memoizedNumPadRec(int vnos, int current, int length) {
- cout << "Vnos: " << vnos << endl;
- cout << "Current: " << current << endl;
- cout << "Length: " << length << endl;
- length++;
- if (length == vnos) {
- counter++;
- return;
- }
- list<int>::iterator i;
- for (i = sosed[current].begin(); i != sosed[current].end(); i++) {
- memoizedNumPadRec(vnos, *i, length);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement