rryu09

  • 홈
  • 태그
  • 방명록

2024/11/12 3

11. Container With Most Water (Medium)

class Solution: def maxArea(self, height: List[int]) -> int: s, e = 0, len(height)-1 water = 0 while s매번 살아돌아오는 고전문제투포인터로 풀면 아주 쉽다e-s 에 괄호만 빼먹지 않기

Dev/Algorithm 2024.11.12

27. Remove Element (Easy)

import sysclass Solution: def removeElement(self, nums: List[int], val: int) -> int: # for _ in range(nums.count(val)): # nums.remove(val) cnt = 0 for i in range(len(nums)): if nums[i]!=val: nums[cnt] = nums[i] cnt+=1 return cnt찾아서 지우는 방법만 생각했는데 아닌 것만 배열에 남겨도 된다

Dev/Algorithm 2024.11.12

290. Word Pattern (Easy)

class Solution: def wordPattern(self, pattern: str, s: str) -> bool: d={} words = s.split() seen=set() if len(pattern)!=len(words): return False for i in range(len(pattern)): if pattern[i] in d: if d[pattern[i]]!=words[i]: return False else: if words[i] in seen: ..

Dev/Algorithm 2024.11.12
이전
1
다음
더보기
프로필사진

rryu09

  • 분류 전체보기 (45)
    • ETC (4)
      • 기록 (3)
    • Dev (2)
      • React (4)
      • React Native (0)
      • JS (0)
      • 졸프 (3)
      • Next.js (0)
      • Cloud (1)
      • Algorithm (28)
      • 리팩토링 (2)

Tag

2차원, Algorithm, API, Audio, Autolayout, babel, BFS, colab, compiler, dfs, DICTIONARY, emotion, es6, figma, FP, Google cloud API, GPT, heapq, image, JavaScript, jest, Knight, lcp, leetcode, Lighthouse, mst, my.cnf, MySQL, Network, next.js, node_modules, npm, object detection, Package Manager, PM, PQ, priority, priority queue, Python, react, storybook, SVG, swc, TfLite, theme, themeProvider, translate, Tree, TTS, TypeScript, UI, usetheme, Word Ladder, Yarn, yarn-berry, yolov5, 개발, 개발자, 공통컴포넌트, 그래프, 누적합, 달팽이, 디자인, 렌더링, 리액트, 리팩토링, 면접, 방문배열, 배열, 배포, 백준, 백트래킹, 부모찾기, 성능개선, 스도쿠, 스토리북, 아이콘, 알고리즘, 오블완, 위상정렬, 이분 그래프, 졸프, 직장인, 최단경로, 최대 증가 부분 수열, 최소 스패닝 트리, 최종합격, 취준, 컴파일러, 컴포넌트, 코딩테스트, 크루스칼, 테스팅, 투포인터, 튜토리얼, 티스토리챌린지, 파이썬, 폰트, 폰트 추천, 프론트엔드,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2024/11   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :
WEB GitHub

Copyright © Kakao Corp. All rights reserved.

티스토리툴바