프론트엔드 개발자 엄성준 블로그

  • 홈
  • 태그

[Leet Code - eazy] 2413. Smallest Even Multiple 1

[Leet Code - eazy] 2413. Smallest Even Multiple

Given a positive integer n, return the smallest positive integer that is a multiple of both 2 and n. Example 1: Input: n = 5 Output: 10 Explanation: The smallest multiple of both 5 and 2 is 10. Example 2: Input: n = 6 Output: 6 Explanation: The smallest multiple of both 6 and 2 is 6. Note that a number is a multiple of itself. Constraints: 1

코딩 테스트 풀이 🛠 2023.01.29
이전
1
다음
더보기
프로필사진

꾸준함을 강점으로 삼고 있는 프론트엔드 개발자 엄성준 블로그입니다.

250x250
  • 카테고리 📂 (396)
    • 코딩 테스트 풀이 🛠 (232)
    • 지식 정리 📝 (92)
    • zero-base 프론트엔드 스쿨 ⛪️ (20)
    • 3월 협업 프로젝트(1석 4조) 👨‍👩‍👧‍👦 (19)

Tag

프론트엔드 개발자, String(), forEach(), 프론트엔드 개발자 엄성준, 프론트엔드 스쿨, 프로그래머스, 엄성준, split(), WiniLogis, autowini, exceljs, sort(), 오토위니, join(), 프론트엔드, 제로베이스 프론트엔드 스쿨, next.js, react, Number(), 제로베이스,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

방문자수Total

  • Today :
  • Yesterday :

꾸준함이 강점이자 자랑인 프론트엔드 개발자 엄성준 입니다.

  • Github
  • 📷 Instar
  • 🎨Portfolio

티스토리툴바