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 |
Tags
- Leetcode 121
- 프로그래머스
- latex 첨자
- python3
- without nohup.out
- Leetcode 70
- linux bash
- 프로그래머스 구명보트
- VirtualBox
- apt autoremove
- vi/vim commands
- url reference
- Python Imaging Library
- Climbing Stairs
- csv x range
- apt clean
- 프로그래머스 체육복
- tensorflow model load
- 프로그래머스 실패율
- git commit message
- Resolution Changing
- LaTeX figure
- vim 괄호 비활성화
- vim 찾아 바꾸기
- vi/vim 명령어
- linux prompt color
- vim set noshowmatch
- 걸쳐서 그림 넣기
- gnuplot csv
- vim 치환
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