[LeetCode] 392. Is Subsequence
Input으로 주어진 s가 또 다른 input인 t의 subsequence(연속이 아니더라도 포함이 돼있다면)인지 True/False를 반환하면 된다. 순서를 지켜야하기 때문에 sorting이나 hash map을 사용하는 것이 아니라 index를 이용해 비교해 나가는 방식으로 풀었다. Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that is formed from the original string by deleting some (can be none) of the characters without disturbing t..
기술(Tech, IT)/리트코드(LeetCode)
2023. 7. 14. 07:25
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 이코노미스트 에스프레소
- 안드로이드
- The Economist Espresso
- 티스토리챌린지
- socket programming
- 소켓 프로그래밍
- Python
- 머신 러닝
- 파이썬
- C++
- Hash Map
- 투 포인터
- 리트코드
- The Economist
- I2C
- defaultdict
- 오블완
- leetcode
- min heap
- Android
- DICTIONARY
- ml
- join
- machine learning
- 이코노미스트
- tf-idf
- Computer Graphics
- 딕셔너리
- java
- vertex shader
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
반응형
