• Skip to primary navigation
  • Skip to content
  • Skip to footer
Dev Battery Dev Battery Sustain intellectual momentum through disciplined engineering practice
    Wonjun Jeong

    Wonjun Jeong

    Backend engineer specializing in scalable systems and reliable API design.

    • Republic of Korea
    • Email
    • GitHub
    All Posts 912
    • 🍀 Diary
      • Today I Learned 275
    • 📈 Algorithm
      • Recap 4
      • LeetCode 116
      • HackerRank 130
      • Codeforces 43
      • Programmers 88
      • Baekjoon 153
      • Inflearn 2
    • 📒 Issue
      • Project 23
    • 🧑🏻‍💻 Programming
      • DevOps 3
      • Java 15
      • Spring 21
      • FastAPI 0
      • Vue 1
      • React 2
    • 🖥️ Computer Science
      • Network 7
      • Database 10
      • Data Structure 14

    [LeetCode] 2413. Smallest Even Multiple (Java)

    Published Jan 25, 2023 Updated Jan 25, 2023

    • Reference


    Solution

    class Solution {
        public int smallestEvenMultiple(int n) {
            if (n % 2 == 0) {
                return n;
            }
            return n * 2;
        }
    }
    

    On this page

    • Solution

    Tags: algorithms

    Categories: LeetCode

    Previous [TIL] 코드스쿼드 CS16 17일차 Next [TIL] 코드스쿼드 CS16 18일차

    Leave a comment

    You may also enjoy

    [TIL] Junior Web Developer Log - Day 77

    Published: 2026-04-07
    Updated: 2026-04-07

    TIL

    [TIL] Junior Web Developer Log - Day 76

    Published: 2026-04-06
    Updated: 2026-04-06

    TIL

    [TIL] Junior Web Developer Log - Day 75

    Published: 2026-04-03
    Updated: 2026-04-03

    TIL

    [TIL] Junior Web Developer Log - Day 74

    Published: 2026-04-02
    Updated: 2026-04-02

    TIL

    Top