Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Course Schedule
- 삼성모니터M7
- Middle of the Linked List
- 수익률
- 요약
- 주식
- Eventual Consistency
- 소규모재건축
- etf
- 알고리즘
- 투자
- java
- SAGA Pattern
- Function-as-a-Service
- Flyweight Pattern
- 팁
- 재건축
- 상가투자
- Mac
- Outbox Pattern
- N-ary Tree Level Order Traversal
- 상가투자 비밀노트
- iTerm2
- 의료
- leettcode
- MS Azure Functions
- 책읽고
- Google Cloud Functions
- 상가
- LeetCode
Archives
- Today
- Total
목록leettcode (1)
개발자허허의 오늘은 뭐 먹지?
[leetcode] 50. Pow(x, n)
x^n 결과를 구하는 문제입니다. leetcode.com/problems/powx-n/ Pow(x, n) - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 이 문제는 x를 n번 루프를 돌려서 풀면.. 타임아웃이 나버립니다. 2^10이라고 10번 2를 곱해줄것이 아니라 2^10 = 2^4 * 2^4 * 2^2 2^4 = 2^2 * 2^2 2^2 해서 총 세번의 연산으로 최종 값을 구할 수 있습니다. 아래 코드는.. i를 n부터 시작해서 i를 반씩 나눠주며 계산합니..
algorithm
2021. 3. 4. 00:31