[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..
[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..
[LeetCode] 424. Longest Repeating Character Replacement - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/longest-repeating-character-replacement/submissions/ Longest Repeating Character Replacement - LeetCode Longest Repeating Character Replacement - You are given a string s and an integer k. You can choose any character of the string and change it to any other uppercase English character. You can perform this operation at most k times. Return the length of the leetcod..
HYOJUN
'Java' 태그의 글 목록 (7 Page)