[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] 347. Top K Frequent Elements - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/top-k-frequent-elements/description/ Top K Frequent Elements - LeetCode Top K Frequent Elements - Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input: nums = [1], k = 1 Output: leetcode.com 문제 Given an integer array nums..
[LeetCode] 49. Group Anagrams - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/group-anagrams/description/ Group Anagrams - LeetCode Group Anagrams - Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters e leetcode.com 문제 Given an array of strings strs, group the..
HYOJUN
'알고리즘풀이' 태그의 글 목록 (6 Page)