演算法›Ch3 動態規劃
第 18 題/共 40 題
◀ AL 18/40
18. Dynamic Programming、Longest Palindromic Subsequence
#AL-03-018中Dynamic ProgrammingLongest Palindromic Subsequence
  1. (6%). A palindrome is a non-empty string over some alphabet that reads the same forward and backward. Examples of palindromes are all strings of length 1, civic, racecar, and aibohphobia. Give an efficient (polynomial-time) algorithm to find the longest palindrome that is a subsequence of a given input string. For example, given the input character, your algorithm should return carac. What is the time complexity of your algorithm?
📄 交大114
跳轉到第題
▤完整推導請見《WH 資工筆記 · 演算法》Ch3 動態規劃
本章題號 · 1–20 / 40