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 |
Tags
- without nohup.out
- 프로그래머스 체육복
- vi/vim 명령어
- apt clean
- Resolution Changing
- vim set noshowmatch
- 프로그래머스 구명보트
- 걸쳐서 그림 넣기
- tensorflow model load
- Leetcode 121
- vim 찾아 바꾸기
- vim 괄호 비활성화
- latex 첨자
- vim 치환
- gnuplot csv
- python3
- csv x range
- Python Imaging Library
- 프로그래머스
- Leetcode 70
- vi/vim commands
- linux prompt color
- apt autoremove
- VirtualBox
- linux bash
- 프로그래머스 실패율
- Climbing Stairs
- git commit message
- url reference
- LaTeX figure
Archives
- Today
- Total
목록Coding Test 준비/Leetcode (2)
기억노트
[Leetcode/Python3] 70. Climbing Stairs
Code class Solution: def climbStairs(self, n: int) -> int: d = [0] * 46 d[1] = 1 d[2] = 2 for i in range(3, n+1): d[i] = d[i-1] + d[i-2] return d[n] Result Runtime: 41 ms Memory Usage: 14.5 MB
Coding Test 준비/Leetcode
2022. 1. 11. 03:20
[Leetcode/Python3] 121. Best Time to Buy and Sell Stock
Code class Solution: def maxProfit(self, prices: List[int]) -> int: minv = prices[0] res = 0 for x in prices[1:]: minv = min(minv, x) res = max(x - minv, res) return res Result Runtime: 1088 ms Memory Usage: 25.2 MB
Coding Test 준비/Leetcode
2022. 1. 11. 02:58