Short Python Solution | Beats 99.54%
Intuition\n Describe your first thoughts on how to solve this problem. \nWe need to find the smallest positive integer that is a multiple of both 2 and the give
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\nWe need to find the smallest positive integer that is a multiple of both 2 and the given number.\n\n> Any numbers that can be exactly divided by 2 are multiples of 2\n\n> Any numbers that can be exactly divided by `n` are multiples of `n`\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n1. Check if the given number is even or odd using `%` operator.\n    - If the number is even (`n % 2` equals 0), return the number.\n    - If the number is odd (`n % 2` equals 1), double the number and return it.\n\n# Complexity\n- Time complexity: O(1)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\nTime complexity of all operations does not depend on the input value. Therefore, the time complexity is O(1), meaning it has constant time complexity.\n\n- Space complexity: O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\nIt only uses a constant amount of memory to store intermediate values and return the result. Therefore, the space complexity is O(1), indicating constant space complexity.\n\n# Code\n```\nclass Solution:\n    def smallestEvenMultiple(self, n: int) -> int:\n        return n * (n % 2 + 1)\n```
['Python3']