Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Longest Palindrome
Bookmark
Input
Standard (ans: 7)
Single char (ans: 1)
All pairs (ans: 6)
Custom
s
=
abccccdd
a
b
c
c
c
c
d
d
oddChars
(empty)
algo
master
.
io
Step:
Start: find the length of the longest palindrome that can be built from "abccccdd"
0 / 20
Input
Standard (ans: 7)
Single char (ans: 1)
All pairs (ans: 6)
Custom
s
=
abccccdd
0 / 20
a
b
c
c
c
c
d
d
oddChars
(empty)
algo
master
.
io
Step:
Start: find the length of the longest palindrome that can be built from "abccccdd"