What does the following function do?
int fun(unsigned int n) { if (n == 0 || n == 1) return n; if (n%3 != 0) return 0; return fun(n/3); }
64.3k questions
77.9k answers
244k comments
80.0k users