
131. Palindrome Partitioning
·
Algorithm
Palindrome Partitioning - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문자열이 입력된다. 입력된 문자열의 연속된 부분 문자열이 모두 Palindrome(회문, 앞에서 읽어도, 뒤에서 읽어도 같은 문자열)이 되게 하는 그 결과 목록을 반환하는 문제다. 1. DP + DFS from typing import * class Solution: def partition(self, s: str) -> List[List[str]]: answers = ..