일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- kaggle
- Python
- 밴픽
- 파이썬
- Protocol
- Regular Expression
- 43. Multiply Strings
- Convert Sorted List to Binary Search Tree
- 시바견
- 컴퓨터의 구조
- 315. Count of Smaller Numbers After Self
- DWG
- shiba
- t1
- Decorator
- Substring with Concatenation of All Words
- iterator
- 109. Convert Sorted List to Binary Search Tree
- Class
- Python Code
- concurrency
- Python Implementation
- Generator
- 프로그래머스
- 715. Range Module
- LeetCode
- 30. Substring with Concatenation of All Words
- attribute
- 운영체제
- data science
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