[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
- 투 포인터
- C++
- defaultdict
- min heap
- 이코노미스트
- 파이썬
- The Economist Espresso
- 이코노미스트 에스프레소
- machine learning
- java
- DICTIONARY
- 딕셔너리
- socket programming
- 소켓 프로그래밍
- Python
- Computer Graphics
- leetcode
- 리트코드
- Android
- I2C
- Hash Map
- tf-idf
- join
- 머신 러닝
- vertex shader
- The Economist
- 오블완
- 안드로이드
- ml
- 티스토리챌린지
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함
반응형