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

  • 홈
  • 태그

[Leet Code - eazy] 1281. Subtract the Product and Sum of Digits of an Integer 1

[Leet Code - eazy] 1281. Subtract the Product and Sum of Digits of an Integer

Given an integer number n, return the difference between the product of its digits and the sum of its digits. Example 1: Input: n = 234 Output: 15 Explanation: Product of digits = 2 * 3 * 4 = 24 Sum of digits = 2 + 3 + 4 = 9 Result = 24 - 9 = 15 Example 2: Input: n = 4421 Output: 21 Explanation: Product of digits = 4 * 4 * 2 * 1 = 32 Sum of digits = 4 + 4 + 2 + 1 = 11 Result = 32 - 11 = 21 Const..

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

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

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

Tag

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

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

방문자수Total

  • Today :
  • Yesterday :

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

  • Github
  • 📷 Instar
  • 🎨Portfolio

티스토리툴바