일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Convert Sorted List to Binary Search Tree
- 프로그래머스
- Decorator
- Python
- 파이썬
- t1
- 30. Substring with Concatenation of All Words
- Substring with Concatenation of All Words
- Class
- 시바견
- 운영체제
- Regular Expression
- 43. Multiply Strings
- Python Implementation
- shiba
- concurrency
- 밴픽
- kaggle
- Protocol
- 109. Convert Sorted List to Binary Search Tree
- attribute
- DWG
- Python Code
- 컴퓨터의 구조
- 315. Count of Smaller Numbers After Self
- 715. Range Module
- LeetCode
- data science
- Generator
- iterator
Archives
- Today
- Total
목록2115 (1)
Scribbling
LeetCode: 2115. Find All Possible Recipes from Given Supplies
For a given recipe, we need to check whether all the necessary elements can be supplied. If an element belongs to supplies, it's a piece of cake. Now the question is to deal with elements that belong to recipes. We can think of recipes as a graph with cycles. Plus, if there's a cycle among certain recipes, they can never be cooked. class Solution: def findAllRecipes(self, recipes: List[str], ing..
Computer Science/Coding Test
2022. 5. 3. 09:43