일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Protocol
- 파이썬
- 315. Count of Smaller Numbers After Self
- shiba
- Convert Sorted List to Binary Search Tree
- 운영체제
- 컴퓨터의 구조
- 시바견
- 43. Multiply Strings
- 715. Range Module
- 109. Convert Sorted List to Binary Search Tree
- concurrency
- DWG
- kaggle
- Python Implementation
- Python Code
- Generator
- Class
- 밴픽
- t1
- Substring with Concatenation of All Words
- data science
- LeetCode
- 30. Substring with Concatenation of All Words
- Regular Expression
- attribute
- iterator
- Python
- 프로그래머스
- Decorator
Archives
- Today
- Total
목록127. Word Ladder (1)
Scribbling
LeetCode: 127. Word Ladder
아래 문제와 거의 같다. https://focalpoint.tistory.com/101 LeetCode: 126. Word Ladder II - 시바견의 끄적임 개인적으로 어려웠던 문제... A. 내가 푼 방법 일단 내가 푼 방법은 아래와 같다. 1) 모든 word에 대해 graph를 그린다. (word간 글자가 1개만 차이나는 경우 연결) 2) 다익스트라 알고리즘으로 최단 경 focalpoint.tistory.com class Solution: def ladderLength(self, beginWord: str, endWord: str, wordList: List[str]) -> int: wordSet = set(wordList) wordSet.discard(beginWord) if endWord no..
Computer Science/Coding Test
2021. 11. 7. 21:03