Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 쿠버네티스
- 우선순위큐
- 프로그래머스
- heapq
- String
- BFS
- 코딩테스트
- DP
- leetcode
- 티스토리챌린지
- 도커
- 아파치 하둡
- 오블완
- 분산
- 파이썬
- Apache Hadoop
- Kubernetes
- 아파치 스파크
- Python
- programmers
- docker
- 리트코드
- apache kafka
- 이진탐색
- 하둡
- 알고리즘
- 아파치 카프카
- 분산처리
- 그래프
- Apache Spark
Archives
- Today
- Total
목록2025/02/09 (1)
래원
[LeetCode] 2364. Count Number of Bad Pairs (Python)
난이도: Medium문제 설명You are given a 0-indexed integer array nums. A pair of indices (i, j) is a bad pair if i and j - i != nums[j] - nums[i].Return the total number of bad pairs in nums. 문제 예제Example 1:Input: nums = [4,1,3,3]Output: 5Explanation: The pair (0, 1) is a bad pair since 1 - 0 != 1 - 4.The pair (0, 2) is a bad pair since 2 - 0 != 3 - 4, 2 != -1.The pair (0, 3) is a bad pair since 3 - 0 !..
알고리즘/LeetCode
2025. 2. 9. 18:57