일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 파이썬알고리즘
- python xor
- 파이썬릿코드
- 릿코드 파이썬
- 파이썬알고리즘풀기
- 릿코드풀기
- binary search
- leetcode 풀기
- 파이썬 알고리즘
- python 알고리즘
- LeetCode
- 릿코드 풀기
- 코틀린기초
- 릿코드풀이
- 파이썬 프로그래머스
- python priority queue
- python Leetcode
- 잇츠디모
- 알고리즘풀이
- python 릿코드
- leetcode풀기
- 알고리즘풀기
- python sorted
- leetcode풀이
- python zip_longest
- 파이썬 알고리즘 풀기
- 파이썬릿코드풀기
- 상가수익률계산기
- 파이썬 릿코드
- 릿코드
- Today
- Total
목록분류 전체보기 (273)
소프트웨어에 대한 모든 것

문제) 290. Word Pattern Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s. Example 1: Input: pattern = "abba", s = "dog cat cat dog" Output: true Example 2: Input: pattern = "abba", s = "dog cat cat fish" Output: false Example 3: Input: pattern = "aaaa", s = "dog c..

문제) 1534. Count Good Triplets Given an array of integers arr, and three integers a, b and c. You need to find the number of good triplets. A triplet (arr[i], arr[j], arr[k]) is good if the following conditions are true: 0

문제) 1962. Remove Stones to Minimize the Total You are given a 0-indexed integer array piles, where piles[i] represents the number of stones in the ith pile, and an integer k. You should apply the following operation exactly k times: Choose any piles[i] and remove floor(piles[i] / 2) stones from it. Notice that you can apply the operation on the same pile more than once. Return the minimum possib..

문제) 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..