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

실전 압축 코딩

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

실전 압축 코딩

검색하기 폼
  • 분류 전체보기 (128)
    • 알고리즘 (20)
      • SW 역량기출문제 (2)
    • 프로젝트 (8)
      • Healthy Tracking (2)
      • FairyTaleBook (6)
    • 백엔드 (7)
      • 공부 (5)
    • 앱개발 (1)
      • Android (1)
    • 프론트엔드 (1)
      • React.js (13)
      • Vue.js (11)
    • javacsript (0)
      • 공부 (8)
    • typescript (1)
  • 방명록

[leetcode] 394. decode string (1)
[LeetCode] 394. Decode String 풀이 (javascript)

https://leetcode.com/problems/decode-string/description/?envType=study-plan-v2&envId=leetcode-75 간만에 올리는 알고리즘 포스팅 이번 문제는 leetcode의 394. Decode String 이다. 문제를 보자마자 기존에 접했던 괄호 채우기 stack 유형을 떠올렸다. 그런데 디테일한 로직을 짜려고 하니 머리가 너무 아팠다. 공간 지각 능력이 좀 부족해서  이런 문제를 풀때는 시물레이션을 돌리면서 차근 차근 로직을 세워 푸는것이 좋다.  로직을 세워 보자! 우선 for loop으로 문자열 s를 순회해 주자. 순회 시, 문자열 s의 character 마다 분기처리를 해주어야 한다. 1. digit은 괄호 [] 안에 들어갈 문자열의..

알고리즘 2025. 2. 19. 22:57
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • vue
  • type annotation type infer
  • table render props
  • 크롬 확장 프로그램 hmr
  • crxjs/vite-plugin typeerror: crypto.hash is not a function
  • crxjs/vite-plugin
  • 크롬 확장 프로그램 핫 리로딩
  • 크롬 확장 프로그램 개발 환경
  • 크롬 확장 프로그램 번들링
  • 크롬 확장 프로그램 개발
  • react vue
  • react lane
  • vitre
  • vue ref
  • 리액트 배치
  • Vue.js
  • react 배치
  • 크롬 확장 프로그램 vite
  • react setstate
  • typescript
  • react batch
  • renderlane
  • vue reactive
  • render props
  • vue3
  • react render props
  • eslint
  • 타입 어노테이션과 타입 추론
  • react ref reative
  • vue react
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바