[C++] Palindrome
Β·
π Computer Science/β Algorithm
Palindrome1. κ°λ
Palindromeμ κ±°κΎΈλ‘ μ½μ΄λ μ λλ‘ μ½λ κ²κ³Ό κ°μ λ¬Έμ₯μ λ§νλ€. 2. λ¬Έμ https://leetcode.com/problems/palindrome-partitioning/description/#include #include using namespace std;class Solution {public: vector> answer; vector sub; vector> partition(string s) { dfs(s, 0); return answer; } void dfs(string s, int index) { if (index == s.length()) { answer.push_bac..