Problem Description

A string s is provided (no spaces). Compute minimum insertions needed to make it a palindrome. Output the number.

Input Format

One line s.

Output Format

One integer.

Sample Test Case

Input:
leetcode
Output:
5

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next