일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- kaggle
- Python Code
- 109. Convert Sorted List to Binary Search Tree
- Generator
- 운영체제
- DWG
- Python
- Class
- Protocol
- Regular Expression
- shiba
- Decorator
- 43. Multiply Strings
- Substring with Concatenation of All Words
- attribute
- 컴퓨터의 구조
- t1
- 315. Count of Smaller Numbers After Self
- 프로그래머스
- iterator
- 시바견
- 30. Substring with Concatenation of All Words
- Convert Sorted List to Binary Search Tree
- Python Implementation
- 파이썬
- 715. Range Module
- LeetCode
- data science
- concurrency
- 밴픽
- Today
- Total
목록2024/07/02 (2)
Scribbling
https://leetcode.com/problems/minimum-adjacent-swaps-to-make-a-valid-array/description/ 1. Pythonclass Solution: def minimumSwaps(self, nums: List[int]) -> int: if len(nums) 2. C++class Solution {public: int minimumSwaps(vector& nums) { if (nums.size() =0; i--) { if (nums[i] == maxVal) { maxIdx = i; break; } } if (minIdx == maxIdx) return 0; else if (minIdx
https://school.programmers.co.kr/learn/courses/30/lessons/49190 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 1. Pythondef solution(arrows): ret = 0 dy = [-1, -1, 0, 1, 1, 1, 0, -1] dx = [0, 1, 1, 1, 0, -1, -1, -1] y, x = 0, 0 nodes = set() nodes.add((0, 0)) edges = set() for arrow in arrows: for _ in r..