⭐️ 난이도 Medium ⭐️ 문제 https://leetcode.com/problems/deepest-leaves-sum/ Deepest Leaves Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given the root of a binary tree, return the sum of values of its deepest leaves. 이진 트리(binary tree)의 root가 주어진다. 이 때, 깊이(depth)가 가장 같은 leave들의 ..
Coding test/Leet Code
⭐️ 난이도 Medium ⭐️ 문제 https://leetcode.com/problems/house-robber/ House Robber - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 당신은 프로페셔널한 도둑이다. 거리에 있는 집들을 도둑질하려고 한다. 각 집에는 일정한 양의 돈이 있다. 만일 인접한 두 개의 집이 같은 날 침입당했다면, security system에 의해 경찰에 자동으로 신고가 될 것이다. 각각의 집에 들어있는 돈의 양이 int형 배열 nu..
⭐️ 난이도 Medium ⭐️ 문제 https://leetcode.com/problems/longest-substring-without-repeating-characters/ Longest Substring Without Repeating Characters - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문자열 s가 주어진다. 중복이 없는 가장 긴 substring의 길이를 구하라. 단, s에는 영문, 숫자, 기호, 공백이 포함되어 있으며, s의 길이의 범위..
⭐️ 난이도 Medium ⭐️ 문제 https://leetcode.com/problems/add-two-numbers/ Add Two Numbers - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 음수가 아닌 정수가 들어있는 비어있지 않은 linked list가 두 개 주어진다. 자리 수가 반대 순서로 (즉 1의 자리부터) 주어지며, 각 노드에 해당하는 값은 한 자리 수 이다. 두 개의 수를 더한 후, 합을 linked list로 반환하라. 단, 0으로 시작하..
⭐️ 난이도 Easy ⭐️ 문제 https://leetcode.com/problems/two-sum/ Two Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com int형 배열 nums와 int형 변수 target이 주어진다. 배열 nums에서 두 개의 수를 골라 그 값이 target이 되도록 하고자 할 때, 두 개의 수의 index를 구하시오. 단, 원소의 중복 사용은 불가능하며 target이 되는 조합은 오직 1개만 존재한다. ⭐️ Follow-up Ca..
⭐️ 난이도 Medium ⭐️ 문제 https://leetcode.com/problems/top-k-frequent-words/ Top K Frequent Words - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given an array of strings words and an integer k, return the k most frequent strings. Return the answer sorted by the frequency from highes..