Tech blog

  • 홈
  • 태그
  • 방명록

POP 1

[코테] 스택 - 1. 스택 세부동작

스택에서 중요한 기능은 크게 네가지. Push, Pop, IsEmpty, IsFull 이다. 자료를 넣고 빼는 Push, Pop 즉 동작에 관한 기능과 더불어, 현재 스택의 상태가 어떠한지, 어떤 것들이 들어있는지를 확인하는 IsEmpty, IsFull 상태에 관한 기능도 중요해 보인다. 아래 네가지 기능을 간단하게 표현 한 것. 당연하게도 IsFull 확인을 위해서는 스택의 max 길이 정보가 주어져야 한다. IsFull stack = [] max_size = 10 def isFull(stack): if len(stack) == max_size : return True IsEmpty def isEmpty(stack): if len(stack) == 0 : return True Push def push(..

Dev 2024.04.18
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (96)
    • MLOps (19)
    • NLP | LLM (4)
    • Issues (7)
    • Dev (41)
    • ML system (5)
    • ML study (13)
    • Strategy (0)
    • Data Nrr (1)
    • Finance (0)

Tag

python, bestparams, 항해99, 내용기반추천, pythonbasic, 뱀게임, 99코테클럽, DeepLearning, mlflow, gradient-descent, pyfunc, 추천시스템, backendstore, python-turtle, artifactstore, Optuna, minio, snakegame, Content-based, modelsave,

최근글과 인기글

  • 최근글
  • 인기글

Archives

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바