본문 바로가기 메뉴 바로가기

Done is better than perfect

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Done is better than perfect

검색하기 폼
  • 분류 전체보기 (113)
    • 경제뉴스 (0)
    • IT (84)
      • Problem Solving (48)
      • Math (4)
      • Linux (1)
      • Rust (3)
      • C, C++ (10)
      • 자료구조, 알고리즘 (11)
      • Kafka (2)
      • Python (3)
    • 일상 (26)
      • 내돈내산 식당 (26)
    • 암호화폐 (3)
  • 방명록

Factorial Trailing Zeros (1)
[C++] LeetCode : Factorial Trailing Zeros

Question Given an integer n, return the number of trailing zeroes in n!. integer 변수 n이 주어졌을 때, n 팩토리얼의 traling zeros 숫자 개수를 리턴하라. trailing zero란 일의 자리수 부터 있는 0의 개수이다. 예를 들어, 12300 이면 trailing zero는 2이다. 다만 중간에 0이 나오는 것은 trailing zero는 아니다. 예를 들어, 1200300의 trailing zero는 2이다. Note that n! = n * (n - 1) * (n - 2) *... * 3 * 2 * 1. 제약사항 0

IT/Problem Solving 2022. 8. 14. 23:38
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • algorithm
  • 러스트 입문
  • 트리
  • LeetCode
  • Interview
  • 러스트 배우기
  • 코딩인터뷰
  • 리트코드
  • ProblemSolving
  • 내돈내산
  • 속초 맛집
  • DP
  • C++
  • 러스트 기초
  • 맛집
  • 솔직후기
  • 알고리즘
  • 반드시 알아야 할 자료구조
  • PS
  • coding interview
  • Problem Solving
  • 자료구조
  • 기술면접
  • Medium
  • rust
  • 인터뷰
  • interview question
  • Tree
  • 러스트
  • 속초
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바