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
- implement
- Binary Tree
- 자바
- Data Structure
- geometry
- array
- Class
- Method
- 구현
- Number Theory
- 코딩테스트
- simulation
- database
- Matrix
- Math
- SQL
- Stack
- greedy
- Binary Search
- bit manipulation
- Counting
- 파이썬
- 코테
- sorting
- string
- two pointers
- dynamic programming
- hash table
- Tree
- java
Archives
- Today
- Total
목록recursion (12)
코린이의 소소한 공부노트
[LeetCode/Easy] 326. Power of Three
1. Input 1) 정수 n 2. Output 1) n이 3의 거듭제곱이면 true를, 아니면 false를 반환 3. Constraint 1) - 2^31 Output: false 5. Code 1) 첫 코드(2022/07/19) if(n==1) return true; if(n=3) num /= 3; if(num==1) return true; else return false;
코딩테스트 풀이/JAVA
2022. 11. 29. 13:22