본문 바로가기 메뉴 바로가기

programming study

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

programming study

검색하기 폼
  • 분류 전체보기 (120)
    • BOJ (77)
    • 자료구조 & 알고리즘 (8)
    • python (12)
    • spring boot (4)
    • java (2)
    • airbnb-clone - Django (16)
  • 방명록

postfix notation (1)
수식의 후위 표기법(Postfix Notation)

일상적으로 사용하는 중위 표기법(infix notation)이 아닌 후위 표기법(postfix notation)으로 수식을 계산하는 알고리즘 여기서는 연산자와 소괄호만을 고려하였음 참고 : 배열을 통해 구현한 스택(ArrayStack) yj-computer.tistory.com/111?category=926838 splitTokens() : string 타입으로 받은 수식을 list 타입으로 바꾸는 함수 def splitTokens(exprStr): tokens = [] val = 0 valProcessing = False for c in exprStr: if c == ' ': continue if c in '0123456789': val = val * 10 + int(c) valProcessing = ..

자료구조 & 알고리즘 2021. 4. 8. 00:51
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 의존 주입
  • tailwind
  • rjust
  • djnago
  • 선형 탐색
  • divmod
  • 스프링부트
  • python
  • for-else
  • 스택
  • springboot
  • 직접 주입
  • 이진 탐색
  • 양방향 연결 리스트
  • 출력 형식 지정
  • string module
  • Stack
  • airbnb clone
  • valid annotation
  • sequence type
  • most_common
  • 선형 배열
  • Django
  • ljust
  • postfix notation
  • initBinder
  • 파이썬
  • python flag
  • ValidataionUtils
  • 자료구조
more
«   2026/04   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바