Leetcode 2413 smallest-even-multiple

1 min

很简单,无需使用 GCD 算法。

  1. 判断给定的 n 是否为偶数
  2. 若不是,乘二,return
  3. 若是,直接 return