본문 바로가기

ror_coding

검색하기
ror_coding
프로필사진 ro_rdil_31

  • Home (160)
    • Data Analysis (13)
      • Growth Hacking (7)
      • Tableau (6)
    • Coding Test (140)
      • Python (86)
      • SQL (54)
    • Certificate (5)
      • 빅데이터 분석 기사 (0)
      • SQLD (3)
      • ADsP (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • RoR's Github
«   2025/08   »
일 월 화 수 목 금 토
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
  • sql
  • Stack
  • python
  • lambda
  • programmers
  • coding
  • tableau
  • cte
  • mysql
  • time complexity
  • LeetCode
  • 완전탐색
  • coding test
  • Level2
  • 코딩테스트
  • level4
  • 프로그래머스
  • 파이썬
  • import re
  • Growth hacking
  • 코테
  • Queue
  • join
  • lv4
  • 코딩
  • hackerrank
  • itertools
  • AARRR
  • counter
  • 조합
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Queue (7)

ror_coding

[Programmers] 올바른 괄호 - 12909, 짝지어 제거하기 - 12973

stack.pop() 사용하기 ! index 조절 때문에 고민 좀 했다..올바른 괄호, 짝지어 제거하기 둘 다 같은 문제라 같이 기록한다. Question : 올바른 괄호 - 12909 '(' 또는 ')' 로만 이루어진 문자열 s가 주어졌을 때, 문자열 s가 올바른 괄호이면 true를 return 하고, 올바르지 않은 괄호이면 false를 return 하는 solution 함수를 완성해 주세요. Code def solution(s): stack = [] for i in s: if not stack : stack.append(i); continue if stack[-1] =='(' and i==')' : stack.pop() else : stack.appen..

Coding Test/Python 2024. 10. 28. 13:52
이전 Prev 1 2 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바