Validating Email Addresses With a Filter

  • + 0 comments

    RELATABLE int utopianTree(int n) { int h = 1; if (n == 0) return h; for (int i = 1; i <= n; i++) { if (i % 2 == 0) { h = h + 1; } else { h = h * 2; } } return h; }