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

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)
  • 방명록

POW (1)
[C++] LeetCode : Pow(x, n)

Question Implement pow(x, n), which calculates x raised to the power n (i.e., xn). x의 n승을 리턴하는 pow 함수를 구현하라. 제약사항 -100.0 < x < 100.0 -2^31 = 1; } } if (n < 0) { ans = (double)(1.0) / (double)(ans); } return ans; } }; // 해당 문제의 Discuss 참고 출처 : https://leetcode.com/explore/interview/card/top-interview-questions-medium/113/math/818/ Explore - LeetCode LeetCode Explore is the best place for everyone..

IT/Problem Solving 2022. 8. 15. 12:32
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 인터뷰
  • 리트코드
  • PS
  • Medium
  • 반드시 알아야 할 자료구조
  • 코딩인터뷰
  • 알고리즘
  • rust
  • 러스트
  • Tree
  • algorithm
  • 속초 맛집
  • 트리
  • 러스트 입문
  • 속초
  • 러스트 배우기
  • Interview
  • 러스트 기초
  • DP
  • ProblemSolving
  • coding interview
  • Problem Solving
  • 자료구조
  • 맛집
  • 기술면접
  • 내돈내산
  • C++
  • interview question
  • 솔직후기
  • LeetCode
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

티스토리툴바