본문 바로가기

기억노트

검색하기
기억노트
프로필사진 진바니

  • 분류 전체보기 (19)
    • Programming (11)
      • Android Studio (0)
      • Gnuplot (2)
      • Linux (1)
      • VirtualBox + Ubuntu (5)
      • LaTeX (0)
      • Raspberry Pi (0)
      • Git (0)
      • Vim (2)
    • Coding Test 준비 (7)
      • Leetcode (2)
      • Programmers (5)
    • 필기 (0)
      • 영어 (0)
      • 논문 작성 관련 (0)
      • 궁금증 (0)
    • 자료 (0)
      • 논문 (0)
      • 발표자료 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • 프로그래머스
  • 프로그래머스 구명보트
  • Python Imaging Library
  • 프로그래머스 실패율
  • latex 첨자
  • without nohup.out
  • vim set noshowmatch
  • Leetcode 121
  • vim 치환
  • linux prompt color
  • VirtualBox
  • vim 괄호 비활성화
  • Leetcode 70
  • Resolution Changing
  • LaTeX figure
  • gnuplot csv
  • 걸쳐서 그림 넣기
  • 프로그래머스 체육복
  • git commit message
  • linux bash
  • tensorflow model load
  • Climbing Stairs
  • apt autoremove
  • apt clean
  • vi/vim 명령어
  • python3
  • vim 찾아 바꾸기
  • vi/vim commands
  • csv x range
  • url reference
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바