본문 바로가기

공돌이 공룡의 서재

검색하기
공돌이 공룡의 서재
프로필사진 구름위의공룡

  • 분류 전체보기 (50)
    • 코딩 (21)
      • 자료구조 (3)
      • 프로그래머스 (10)
      • opencv (7)
    • 딥러닝 (27)
      • Vision (9)
      • NLP (3)
      • NeRF (0)
      • Tracking (3)
      • Model (3)
      • 3D (4)
      • GAN (1)
    • 컴퓨터비전 (2)
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
  • transformer
  • 프로그래머스
  • 자료구조
  • 임계처리
  • Deeplearning
  • attention
  • Object Tracking
  • deep learning
  • re-identification
  • NLP
  • OpenCV
  • 큐
  • Computer Vision
  • level2
  • numpy
  • center loss
  • 알고리즘
  • cv2
  • point cloud
  • Python
  • 논문 구현
  • 스택
  • Object Detection
  • Threshold
  • flame
  • 파이썬
  • reconstruction
  • 3D
  • Knowledge Distillation
  • 딥러닝
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록주식가격 (1)

공돌이 공룡의 서재

[프로그래머스 Level 2] 주식가격 / (스택/큐) / 파이썬

def solution2(prices: list): answer = [] ##1 price = prices[::-1] time = 0 delay = price.copy() _ = delay.pop() ##2 while len(delay) > 0: time += 1 now = price.pop() later = delay.pop() # print(now, price) # print(later, delay) if now > later: ## 3-1 answer.append(1) else: ## 3-2 flag = False for i in range(1, len(price)): if now > price[-i - 1]: flag = True answer.append(i + 1) break if not fla..

코딩/프로그래머스 2020. 9. 2. 17:27
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바