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