[LeetCode] 76. Minimum Window Substring - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/minimum-window-substring/description/ 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 leetcode.com 문제 Given two strings s a..
[LeetCode] 647. Palindromic Substrings - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/palindromic-substrings/ Palindromic Substrings - LeetCode Palindromic Substrings - Given a string s, return the number of palindromic substrings in it. A string is a palindrome when it reads the same backward as forward. A substring is a contiguous sequence of characters within the string. Example 1: Input: s leetcode.com 문제 Given a string s, return the number of pa..
[LeetCode] 5. Longest Palindromic Substring - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/longest-palindromic-substring/description/ Longest Palindromic Substring - LeetCode Longest Palindromic Substring - Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" Explanation: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output: "bb" Constraints: * 1
[LeetCode] 235. Lowest Common Ancestor of a Binary Search Tree - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/description/ Lowest Common Ancestor of a Binary Search Tree - LeetCode Lowest Common Ancestor of a Binary Search Tree - Given a binary search tree (BST), find the lowest common ancestor (LCA) node of two given nodes in the BST. According to the definition of LCA on Wikipedia [https://en.wikipedia.org/wiki/Lowest_common_..
[LeetCode] 230. Kth Smallest Element in a BST - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/kth-smallest-element-in-a-bst/description/ Kth Smallest Element in a BST - LeetCode Kth Smallest Element in a BST - Given the root of a binary search tree, and an integer k, return the kth smallest value (1-indexed) of all the values of the nodes in the tree. Example 1: [https://assets.leetcode.com/uploads/2021/01/28/kthtree1.jpg] Inpu leetcode.com 문제 Given the root..
HYOJUN
'algorythm' 태그의 글 목록 (5 Page)