Back to Month
EASY 15 Jul 2026

3658. GCD of Odd and Even Sums

</> Solution

class Solution {
    public int gcdOfOddEvenSums(int n) {
        return n;
    }
}

TIME COMPLEXITY

O(1)

SPACE COMPLEXITY

O(1)

TOPICS

Math