[LeetCode] 208. Implement Trie (Prefix Tree) - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/implement-trie-prefix-tree/ Implement Trie (Prefix Tree) - LeetCode Can you solve this real interview question? Implement Trie (Prefix Tree) - A trie [https://en.wikipedia.org/wiki/Trie] (pronounced as "try") or prefix tree is a tree data structure used to efficiently store and retrieve keys in a dataset of strings. There leetcode.com 문제 A trie (pronounced as "try")..
[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_..
HYOJUN
'알고리즘' 태그의 글 목록 (6 Page)