#include <iostream> #include <set> using namespace std; int ReserveandRemoveDuplicates(int num) { set<int> seen; int result = 0; while(num>0) { int digit = num % 10; if(seen.find(digit) == seen.end()) { seen.insert(digit); re...