일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- String
- DailyLeetCoding
- BFS
- greedy
- leetcode
- VCS
- hash
- Easy
- Hashtable
- 구현
- dfs
- Bellman-Ford
- Two Pointers
- heap
- Union Find
- LinkedList
- Medium
- Leedcode
- sorting
- graph
- python3
- Java
- hash table
- array
- 자료구조
- stack
- ArrayList vs LinkedList
- 광연자동차운전면허학원
- A* Algorithm
- SinglyLinkedList
Archives
- Today
- Total
목록binary search (1)
Min IT's Devlog
[python3] 2300. Successful Pairs of Spells and Potions
풀이 일자: 23.04.02 난이도: [Medium] 분류: [Array, Two Pointers, Binary Search, Sorting] 문제 내용 문제의 내용은 정수가 담긴 2개의 배열이 주어지고 이 배열들 간의 이루어질 수 있는 원소들간의 곱이 success라고 하는 기준점 이상인 경우를 count해서 spells 기준으로 가능한 경우의 수를 리턴하는 문제이다. spells = [5,1,3], potions= [1,2,3,4,5], success = 7 spells = 5 => [5,10,15,20,25] # successful 횟수는 4 spells = 1 => [1,2,3,4,5] # successful 횟수는 0 spells = 3 => [3,6,9,12,15] # successful 횟수..
코테/LeetCode(Solve)
2023. 4. 2. 19:45