You can't add a list to a set because lists are mutable, meaning that you can change the contents of the list after adding it to the set.
Ref
'Algorithms' 카테고리의 다른 글
| Shortest Path (최단경로 알고리즘) (0) | 2022.06.29 |
|---|---|
| Dynamic Programming (동적 계획법) (0) | 2022.06.27 |
| 이진 탐색 알고리즘 (Binary Search Algorithm) (0) | 2022.06.22 |
| Sorting Algorithm (0) | 2022.05.01 |
| adjacent list vs adjacent matrix (0) | 2022.04.28 |
댓글