leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE |
2413.cpp (102B)
0 class Solution { 1 public: 2 int smallestEvenMultiple(int n) const { return n % 2 ? n * 2 : n; } 3 };