일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- binary search
- 릿코드 풀기
- 잇츠디모
- leetcode풀이
- python 알고리즘
- leetcode풀기
- 상가수익률계산기
- python priority queue
- 파이썬릿코드
- 코틀린기초
- leetcode 풀기
- 파이썬알고리즘
- python 릿코드
- LeetCode
- python sorted
- 파이썬 알고리즘 풀기
- 릿코드풀이
- python xor
- 파이썬 릿코드
- 릿코드 파이썬
- 파이썬알고리즘풀기
- 릿코드
- 파이썬 프로그래머스
- 파이썬릿코드풀기
- python Leetcode
- 알고리즘풀기
- 릿코드풀기
- 파이썬 알고리즘
- python zip_longest
- 알고리즘풀이
- Today
- Total
목록알고리즘/LeetCode (177)
소프트웨어에 대한 모든 것
문제) 404. Sum of Left Leaves Given the root of a binary tree, return the sum of all left leaves. A leaf is a node with no children. A left leaf is a leaf that is the left child of another node. Example 1: Input: root = [3,9,20,null,null,15,7] Output: 24 Explanation: There are two left leaves in the binary tree, with values 9 and 15 respectively. Example 2: Input: root = [1] Output: 0 Constraints:..
문제) 872. Leaf-Similar Trees Consider all the leaves of a binary tree, from left to right order, the values of those leaves form a leaf value sequence. For example, in the given tree above, the leaf value sequence is (6, 7, 4, 9, 8). Two binary trees are considered leaf-similar if their leaf value sequence is the same. Return true if and only if the two given trees with head nodes root1 and root2..
문제) 2149. Rearrange Array Elements by Sign 2149. Rearrange Array Elements by Sign Medium 110664Add to ListShare You are given a 0-indexed integer array nums of even length consisting of an equal number of positive and negative integers. You should rearrange the elements of nums such that the modified array follows the given conditions: Every consecutive pair of integers have opposite signs. For ..
제목 문제) 2148. Count Elements With Strictly Smaller and Greater Elements Given an integer array nums, return the number of elements that have both a strictly smaller and a strictly greater element appear in nums. Example 1: Input: nums = [11,7,2,15] Output: 2 Explanation: The element 7 has the element 2 strictly smaller than it and the element 11 strictly greater than it. Element 11 has element 7 ..
문제) 2103. Rings and Rods There are n rings and each ring is either red, green, or blue. The rings are distributed across ten rods labeled from 0 to 9. You are given a string rings of length 2n that describes the n rings that are placed onto the rods. Every two characters in rings forms a color-position pair that is used to describe each ring where: The first character of the ith pair denotes the..
문제) 1365. How Many Numbers Are Smaller Than the Current Number Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i]. Return the answer in an array. Example 1: Input: nums = [8,1,2,2,3] Output: [4,0,1,1,3] Explanation: For nums[0]=8 there exist f..
문제) 2389. Longest Subsequence With Limited Sum You are given an integer array nums of length n, and an integer array queries of length m. Return an array answer of length m where answer[i] is the maximum size of a subsequence that you can take from nums such that the sum of its elements is less than or equal to queries[i]. A subsequence is an array that can be derived from another array by delet..
문제) 2418. Sort the People You are given an array of strings names, and an array heights that consists of distinct positive integers. Both arrays are of length n. For each index i, names[i] and heights[i] denote the name and height of the ith person. Return names sorted in descending order by the people's heights. Example 1: Input: names = ["Mary","John","Emma"], heights = [180,165,170] Output: [..