일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Substring with Concatenation of All Words
- 315. Count of Smaller Numbers After Self
- shiba
- DWG
- Convert Sorted List to Binary Search Tree
- 프로그래머스
- 컴퓨터의 구조
- iterator
- t1
- 운영체제
- 파이썬
- attribute
- 밴픽
- 시바견
- 43. Multiply Strings
- Python
- 715. Range Module
- Regular Expression
- Python Code
- Protocol
- Generator
- Python Implementation
- Class
- Decorator
- kaggle
- data science
- 30. Substring with Concatenation of All Words
- concurrency
- 109. Convert Sorted List to Binary Search Tree
- LeetCode
Archives
- Today
- Total
목록833. Find And Replace in String (1)
Scribbling
LeetCode: 833. Find And Replace in String
The very first thing to do is looking for matches. We don't need to use any fancy algorithms when looking for matches in this problem because it is guranteed that replacements will not overlap. Now we have matched list in the form of [index, source, target]. If you are planning to replace s directly, it will lead to bad time complexity as you will have to copy all the characters of s each time y..
Computer Science/Coding Test
2022. 3. 15. 09:48