일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- stratascratch
- 리트코드
- 생성형AI
- Microsoft
- Python3
- 파이썬알고리즘
- two-pointer
- slidingwindow
- 알고리즘
- 릿코드
- GenerativeAI
- 니트코드
- codeup
- gcp
- SQL
- 파이썬
- 투포인터
- Python
- Blazor
- 자연어처리
- 파이썬기초100제
- 코드업
- 구글퀵랩
- nlp
- 슬라이딩윈도우
- GenAI
- medium
- dfs
- sql코테
- LeetCode
Archives
- Today
- Total
목록pythonalgoritm (1)
Tech for good

class Solution: def isPrefixOfWord(self, sentence: str, searchWord: str) -> int: words = sentence.split() for i, word in enumerate(words): if word.startwith(searchword): return i+1 return -1 Explanation:Split the Sentence: The input sentence is split into a list of words using .split(), which automatically handles single spaces.Iterate Over Words..
IT/Computer Science
2025. 2. 17. 23:40