2413. Smallest Even Multiple
Easy
Given a positive integer n
, return the smallest positive integer that is a multiple of both 2
and n
.
Example 1:
Example 2:
Constraints:
1 <= n <= 150
解題
Runtime: 0 ms, faster than 100%
Memory Usage: 1.9 MB, less than 14.7%
Last updated