본문 바로가기

나의 개발일지

검색하기
나의 개발일지
프로필사진 YoonJuHan

  • 분류 전체보기 (231)
    • 인공지능 (1)
    • Kaggle (4)
    • 프로그래머스 (108)
    • 백준 (82)
    • Oracle SQL (25)
    • Oracle SQL 엔진 (7)
    • 네이버 뉴스 요약 프로젝트 (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/03   »
일 월 화 수 목 금 토
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
  • oracle
  • KAKAO
  • 스택
  • Database
  • 이분탐색
  • 코딩테스트
  • DP
  • 힙
  • 너비우선탐색
  • 데이터베이스
  • Stack
  • 딕셔너리
  • 프로그래머스
  • 다익스트라
  • heap
  • 파이썬
  • heapq
  • SQL
  • 정렬
  • 카카오
  • 그리디
  • Python
  • 재귀
  • deque
  • BFS
  • 우선순위큐
  • PCCP
  • 오라클
  • DFS
  • 백준
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록eval() (1)

나의 개발일지

[프로그래머스] Lv.2 수식 최대화 [Python, 파이썬] KAKAO

문제 : https://school.programmers.co.kr/learn/courses/30/lessons/67257 🔑 조합을 구하고, 스택으로 계산, eval() from itertools import permutations def solution(expression): answer = 0 op = [] # 연산자 종류 if '+' in expression: op.append('+') # 무슨 연산자가 쓰였나 찾아보자 if '-' in expression: op.append('-') if '*' in expression: op.append('*') exp = [] st = 0 for i in range(len(expression)): # 문자열로 된 표현식을 리스트로 바꾸자 if expressi..

프로그래머스 2023. 10. 11. 23:50
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바