mydailylogs

mydailylogs

  • 분류 전체보기 (115)
    • Kafka (1)
      • Debezium CDC (1)
    • Archieve (110)
      • Elastic Stack (1)
      • AI (3)
      • etc (2)
      • errors (5)
      • CS (20)
      • OS (18)
      • Linux OS (2)
      • 알고리즘 (26)
      • DevOps (8)
      • Cloud Service (5)
      • Airflow (3)
      • Python (3)
      • Go (4)
      • Data Engineering (9)
      • Programming Language (0)
      • Kafka (1)
  • 홈
  • 태그
  • Github
RSS 피드
로그인
로그아웃 글쓰기 관리

mydailylogs

컨텐츠 검색

태그

kuberntes sliding window Binary Search logging Dual Stack git 충돌 캐시 kafka cache SIIT two pointer 동기화 greedy IPv6 헤더 위험 궤적 Zookeeper Python 경쟁 상태 광물캐기 airflow

최근글

댓글

공지사항

아카이브

sliding window(2)

  • [Leetcode] 1498. Number of Subsequences That Satisfy the Given Sum Condition

    🗓️ Daily LeetCoding Challenge May, Day 6 class Solution: def numSubseq(self, nums: List[int], target: int) -> int: answer = 0 nums.sort() # O(NlogN) left, right = 0, len(nums) - 1 while left

    2023.05.06
  • [Leetcode] 1456. Maximum Number of Vowels in a Substring of Given Length

    🗓️ Daily LeetCoding Challenge May, Day 5 class Solution: def maxVowels(self, s: str, k: int) -> int: q = collections.deque(s[:k]) vowel = ['a', 'e', 'i', 'o', 'u'] count = 0 max_count = 0 for v in vowel: count += s[:k].count(v) max_count = max(max_count, count) i = k while i < len(s): if q.popleft() in vowel: count -= 1 x = s[i] q.append(x) if x in vowel: count += 1 max_count = max(max_count, co..

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

티스토리툴바