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

허서기의 블로그

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

허서기의 블로그

검색하기 폼
  • 분류 전체보기 (36)
    • 독서 (0)
    • 개발 (34)
      • 알고리즘 (24)
      • 프로젝트 (4)
      • 공부 (3)
  • 방명록

개발/알고리즘 (24)
[leetcode 매일 풀기] 132. palindrome partitioning 2

오늘 리뷰할 문제는 palindrome partitioning 2이다. https://leetcode.com/problems/palindrome-partitioning-ii/ int: def is_palindrome(string: str) -> bool: return string == string[::-1] cache = {} def solve_min_cut(i: int, j: int) -> int: key = (i, j) if key in cache: return cache[key] if is_palindrome(s[i:j]): cache[key] = 0 return 0 min_cut = j - i + 1 for index in range(i + 1, j): if is_palindrome(s[i:ind..

개발/알고리즘 2023. 12. 19. 22:54
[leetcode 매일 풀기] 127.word ladder

오늘 리뷰할 문제는 word ladder 이다. https://leetcode.com/problems/word-ladder/ Word Ladder - LeetCode Can you solve this real interview question? Word Ladder - A transformation sequence from word beginWord to word endWord using a dictionary wordList is a sequence of words beginWord -> s1 -> s2 -> ... -> sk such that: * Every adjacent pair of words differs leetcode.com 이 문제는 시작단어, 끝 단어, 그리고 단어들의 목록이 있을 때...

개발/알고리즘 2023. 12. 17. 09:30
[leetcode 매일 풀기] 126. word ladder 3

오늘 리뷰할 문제는 126. word ladder 3이다. https://leetcode.com/problems/word-ladder-ii/ Word Ladder II - LeetCode Can you solve this real interview question? Word Ladder II - A transformation sequence from word beginWord to word endWord using a dictionary wordList is a sequence of words beginWord -> s1 -> s2 -> ... -> sk such that: * Every adjacent pair of words diffe leetcode.com 이 문제는 시작단어, 끝 단어, 그리고 단..

개발/알고리즘 2023. 12. 16. 09:57
[leetcode 매일 풀기] 124. binary tree maximum path sum

오늘 리뷰할 문제는 binary tree maximm path sum입니다. https://leetcode.com/problems/binary-tree-maximum-path-sum/ Binary Tree Maximum Path Sum - LeetCode Can you solve this real interview question? Binary Tree Maximum Path Sum - A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can only appear in the sequence at most once. N..

개발/알고리즘 2023. 12. 14. 09:37
[leetcode 매일풀기] 123 best time to buy and sell stock 3

오늘 리뷰할 문제는 best time to buy and sell stock 3이다. https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/ Best Time to Buy and Sell Stock III - LeetCode Can you solve this real interview question? Best Time to Buy and Sell Stock III - You are given an array prices where prices[i] is the price of a given stock on the ith day. Find the maximum profit you can achieve. You may complete at m..

개발/알고리즘 2023. 12. 13. 22:24
[leetcode 매일 풀기] 115. distinct subsequences

오늘 리뷰할 문제는 distinct subsequences이다. https://leetcode.com/problems/distinct-subsequences/ Distinct Subsequences - LeetCode Can you solve this real interview question? Distinct Subsequences - Given two strings s and t, return the number of distinct subsequences of s which equals t. The test cases are generated so that the answer fits on a 32-bit signed integer. Example 1: In leetcode.com 문자열 s, t가..

개발/알고리즘 2023. 12. 12. 22:20
[leetcode 매일 풀기] 87. scramble string

오늘 리뷰할 문제는 scramble string 입니다. https://leetcode.com/problems/scramble-string/ Scramble String - LeetCode Can you solve this real interview question? Scramble String - We can scramble a string s to get a string t using the following algorithm: 1. If the length of the string is 1, stop. 2. If the length of the string is > 1, do the following: * Split the string leetcode.com 이 문제는 두개의 문자열이 들어왔을 때,..

개발/알고리즘 2023. 12. 11. 22:16
[leetcode 매일 풀기] 85. maximum rectangle

오늘 리뷰할 문제는 85 maximum rectangle 이다. https://leetcode.com/problems/maximal-rectangle/ Maximal Rectangle - LeetCode Can you solve this real interview question? Maximal Rectangle - Given a rows x cols binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example 1: [https://assets.leetcode.com/uploads/2020/09/14/ma leetcode.com 0과 1로 이루어진 2차원 배열에..

개발/알고리즘 2023. 12. 10. 10:59
[leetcode 매일 풀기] 76. minimum window substring

오늘 리뷰할 문제는 78 minimum window substring이다. https://leetcode.com/problems/minimum-window-substring/ Minimum Window Substring - LeetCode Can you solve this real interview question? Minimum Window Substring - Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicates) is included in the window. If t leetcod..

개발/알고리즘 2023. 12. 9. 09:08
[leetcode 매일 풀기] 68. text justification

오늘 리뷰할 문제는 68.text justification 입니다. https://leetcode.com/problems/text-justification/ Text Justification - LeetCode Can you solve this real interview question? Text Justification - Given an array of strings words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justified. You should pack your words i leetcode.com 문제 설명을 하자면..

개발/알고리즘 2023. 12. 8. 12:46
이전 1 2 3 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • scramble string
  • best time to buy and sell stock 3
  • leetcode
  • permutation sequence
  • 알고리즘
  • longest valid parentheses
  • palindrome partitioning 2
  • text justification
  • binary tree maximum path sum
  • leetcode 매일 풀기
  • 글또 10기
  • leetcode 매일풀기
  • n queens 2
  • 회고
  • mlse
  • sudoku solver
  • substring with concatenation of all words
  • slay the spire에 진심인편
  • word ladder 2
  • distinct subsequences
  • otel
  • wildcard matching
  • Python
  • maximum rectangle
  • first missing positive
  • datalakehouse
  • 가상면접 사례로 배우는 대규모 시스템 설계
  • 개발자 글쓰기
  • valid number
  • hard mode challenge
more
«   2025/05   »
일 월 화 수 목 금 토
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

티스토리툴바