반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 코틀린 #Do it #깡샘 #안드로이드
- exoplayer #mediaplayer #엑소플레이어 #안드로이드 #android
- Python #leetcode #dfs #그래프 #백트래킹
- 다익스트라 #알고리즘 #bfs #그리디 #다이나믹프로그래밍 #leetcode #python
- dfs #python #leetcode #combination
- final #java #자바 #안드로이드
- leetcode #python #dfs #재귀
- dfs #bfs #트리구조 #이진트리 #leetcode #python #파이썬
- 리트코드 #팰린드롬 #파이썬
- 2004 #조합 0의 개수 #백준
- python #백준 #2580 #스도쿠 #dfs #백트래킹
- dfs #그래프 #graph #python #leetcode #course #schedule
- gcd #최대공약수 #백준 #2981 #검문
- dfs #bfs #트리구조 #이진트리 #leetcode #파이썬 #python
- context #android #getApplicationContext #activity #생명주기 #lifecycle
- dfs #이진트리 #트리구조 #직렬화 #역직렬화 #파이썬 #리트코드 #leetcode #python
- 다익스트라 #dijkstra #leetcode #파이썬 #python #algorithm #787
- dfs #leetcode #python #graph #그래프
- 백준 #파이썬 #bfs #백트래킹 #1697 #숨바꼭질
- 해시테이블 #heapq #파이썬 #리트코드 #알고리즘
- 아스테리스크 #Asterisk #파이썬
- handler #looper #thread #runnable #핸들러 #루퍼 #스레드 #러너블
- dfs #python #leetcode
- dfs #leetcode #python
- 파이썬 #zip
- dfs #bfs #leetcode #python
- dfs #bfs #이진트리 #파이썬 #리트코드
- AsyncTask #doinbackground #스레드 #thread #android #안드로이드
- python #백준 #9375 #패션왕 #신해빈
- leetcode #subsets #dfs #itertools #python
Archives
- Today
- Total
목록리트코드 #팰린드롬 #파이썬 (1)
멋진 개발자가 되고 싶다
336. Palindrome Pairs
문제 단어 리스트에서 words [i] + words [j]가 팰린드롬이 되는 모든 인덱스 조합 (i, j)를 구하라 ex) Input: words = ["abcd","dcba","lls","s","sssll"] Output: [[0,1],[1,0],[3,2],[2,4]] Explanation: The palindromes are ["dcbaabcd","abcddcba","slls","llssssll"] 해설 처음 봤을 땐 브루트포스로 쉽게 해결 가능해 보였지만 역시나 hard 문제답게 TLE가 떠버림.. 결국 Trie를 써서 해결해야 되는 문젠데.. Trie 자체는 이해가 되는데 팰린드롬이 되는 경우의 수를 따지는 게 어려웠다. 결국 답도 보고 검색도 해보고 이해는 된 상황! 우선 코드부터 보자! 1 ..
Algorithm Study/leetcode
2021. 11. 17. 17:32