SmallestEvenMultiple

Published at 2023-01-19

class Solution:
    def smallestEvenMultiple(self, n: int) -> int:
        return n*2 if n%2 else n