말랑

말랑

  • 분류 전체보기 (102)
    • boj (24)
    • c (11)
    • js (55)
    • 독서 (0)
    • 작업일지 (7)
    • 주간회고 (3)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

말랑

컨텐츠 검색

태그

티스토리챌린지 Leetcode 오블완 typescript leetcode 출처 js deep dive

최근글

댓글

공지사항

아카이브

typescript leetcode(1)

  • leet code valid-parentheses

    valid parenthess 풀이 string 의 길이를 돌면서 가장 최근 열린 괄호가 닫힌괄호와 같은지를 판단하고,아니라면 false 를 return 그리고 마무리 까지 진행하다 닫히지 않은 괄호가 존재하면 false 를 리턴하고아니라면 true를 리턴하면 풀이가 끝난다 # Intuition# Approach# Complexity- Time complexity:- Space complexity:# Code```typescript []const types = { '}' : '{', ')' : '(', ']' : '[',}function isValid(s: string): boolean {  const temp = [];  for (let i = 0; i s.length; i++) {    if (typ..

    2024.11.13
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바