590. N-ary Tree Postorder Traversal - easy 문제 Given an n-ary tree, return the postorder traversal of its nodes’ values. Nary-Tree input serialization is represented in their level order traver...
LeetCode - 589. N-ary Tree Preorder Traversal
589. N-ary Tree Preorder Traversal - easy 문제 Given an n-ary tree, return the preorder traversal of its nodes’ values. Nary-Tree input serialization is represented in their level order traversa...
LeetCode - 532. K-diff Pairs in an Array
532. K-diff Pairs in an Array - easy 문제 Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an integer...
LeetCode - 461. Hamming Distance
461. Hamming Distance - easy 문제 The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calculate the Ha...
LeetCode - 338. Counting Bits
338. Counting Bits - medium 문제 Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them a...
LeetCode - 303. Range Sum Query
303. Range Sum Query - Immutable - easy 문제 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. 제한사항 You may assume that the array does not ...
LeetCode - 39. Combination Sum
39. Combination Sum - medium 문제 Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the candidate n...
LeetCode - 3. Longest Substring Without Repeating Characters
3. Longest Substring Without Repeating Characters - medium 문제 Given a string, find the length of the longest substring without repeating characters. 제한사항 입출력 예 Example 1: Input: "abcabcbb" O...
LeetCode - 292. Nim Game
292. Nim Game - easy 문제 You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who rem...
LeetCode - 290. Word Pattern
290. Word Pattern - easy 문제 Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern a...