개발 기록기록📝

  • 홈
  • 태그
  • 방명록

파이썬 힙 1

[Python][프로그래머스] - 더맵게

Heap 최댓값 및 최솟값을 찾아내는 연산을 빠르게 하기 위해 고안된 완전이진트리(complete binary tree)를 기본으로 한 자료구조입니다. 부모노드와 자식 노드 사이에 대소 관계가 성립하며(자식 노드간에는 대소관계 없음) 부모 노드의 키 값이 자식 노드의 키 값보다 항상 큰 힙을 최대 힙, 부모 노드의 키 값이 자식 노드의 키 값보다 작은 힙을 '최소 힙'이라고 합니다. 위 이미지는 최대 힙을 나타냅니다. 파이썬 heapq 모듈 인덱스 k번째 노드는 그 자식 노드 2K+1과 2K+2 보다 항상 작은 최소 힙의 형태로 정렬되게 합니다. heapq.heappush(list, item) : item을 list에 추가 heapq.heappop(list) : list에서 가장 작은 원소를 pop, 리..

Algorithm 뽀개기/프로그래머스 2021.08.03
이전
1
다음
더보기
프로필사진

개발 기록기록📝

  • 분류 전체보기
    • Dart
    • Flutter
      • Flutter 에러 해결
      • Flutter 개발 기록
      • Flutter 정리
    • Javascript
      • 모던 자바스크립트 Deep Dive
      • 문법 정리
    • Front-End
      • 성능개선
      • Next.js
      • React
      • 프론트엔드 개발환경
    • Kafka
    • JPA
    • Algorithm 뽀개기
      • 프로그래머스
      • 알고리즘을 위한 문법
      • 알고리즘 정리
    • Spring
      • 스프링 핵심원리 기본편
    • Java
    • 개발삽질기
    • python
    • AWS
    • 성능 테스팅
    • Middleware
    • Linux
    • SQL
    • Network
    • Architecture
    • OS
    • Etc
    • 회고
    • 프로젝트
      • TMS

Tag

but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'googledatatransport' from project 'pods'), failed to verify code signature of, 플러터 구조, 플러터 클린아키텍처, error shutdown broker because all log dirs in, windows kafka, 파이썬, please ensure that the certificates used to sign your app have not expired., 프로그래머스, 시간복잡도, windows kafka 에러, the identity used to sign the executable is no longer valid, log4j:error failed to rename, flutter architecture, 플러터 아키텍처, flutter plugin 개발, ios/pods/target support files/pods-runner/pods-runner-resources.sh: permission denied command phasescriptexecution failed with a nonzero exit code, the ios deployment target 'iphoneos_deployment_target' is set to 9.0, framework 'pods_runner' not found, JPA,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바