Algorithm/자료구조 (126) 썸네일형 리스트형 (C++) - LeetCode (easy) 697. Degree of an Array https://leetcode.com/problems/degree-of-an-array/description/ Degree of an Array - LeetCode Can you solve this real interview question? Degree of an Array - Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your task is to find the smallest possible leng leetcode.com 자료구조를 이용한 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 .. (C++) - LeetCode (easy) 671. Second Minimum Node In a Binary Tree https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/description/ Second Minimum Node In a Binary Tree - LeetCode Can you solve this real interview question? Second Minimum Node In a Binary Tree - Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero sub-node. If the node has two sub leetcode.com .. (C++) - LeetCode (easy) 705. Design HashSet https://leetcode.com/problems/design-hashset/description/ Design HashSet - LeetCode Can you solve this real interview question? Design HashSet - Design a HashSet without using any built-in hash table libraries. Implement MyHashSet class: * void add(key) Inserts the value key into the HashSet. * bool contains(key) Returns whether the value leetcode.com class를 구현해보는 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 set을 .. (C++) - LeetCode (easy) 617. Merge Two Binary Trees https://leetcode.com/problems/merge-two-binary-trees/description/ Merge Two Binary Trees - LeetCode Can you solve this real interview question? Merge Two Binary Trees - You are given two binary trees root1 and root2. Imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not. You need to leetcode.com 재귀로 tree를 만드는 문제였습니다. 📕 풀이방법 .. (C++) - LeetCode (easy) 594. Longest Harmonious Subsequence https://leetcode.com/problems/longest-harmonious-subsequence/description/ Longest Harmonious Subsequence - LeetCode Can you solve this real interview question? Longest Harmonious Subsequence - We define a harmonious array as an array where the difference between its maximum value and its minimum value is exactly 1. Given an integer array nums, return the length of its l leetcode.com 자료구조를 이용한 문제.. (C++) - LeetCode (easy) 590. N-ary Tree Postorder Traversal https://leetcode.com/problems/n-ary-tree-postorder-traversal/description/ N-ary Tree Postorder Traversal - LeetCode Can you solve this real interview question? N-ary Tree Postorder Traversal - Given the root of an n-ary tree, return the postorder traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversal. Each group of ch leetcode.com n진 tree의 후위순.. (C++) - LeetCode (easy) 589. N-ary Tree Preorder Traversal https://leetcode.com/problems/n-ary-tree-preorder-traversal/description/ N-ary Tree Preorder Traversal - LeetCode Can you solve this real interview question? N-ary Tree Preorder Traversal - Given the root of an n-ary tree, return the preorder traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversal. Each group of chil leetcode.com pre order를 다진 .. (C++) - LeetCode (easy) 575. Distribute Candies https://leetcode.com/problems/distribute-candies/description/ Distribute Candies - LeetCode Can you solve this real interview question? Distribute Candies - Alice has n candies, where the ith candy is of type candyType[i]. Alice noticed that she started to gain weight, so she visited a doctor. The doctor advised Alice to only eat n / 2 of the can leetcode.com 자료구조 map을 이요해 해결한 문제였습니다. 📕 풀이방법 📔 입.. 이전 1 ··· 3 4 5 6 7 8 9 ··· 16 다음