Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
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
s
a
0
b
1
c
2
c
3
c
4
c
5
d
6
d
7
oddChars (Set)
(empty)
algo
master
.
io
Step:
Start: Find 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
s
a
0
b
1
c
2
c
3
c
4
c
5
d
6
d
7
oddChars (Set)
(empty)
algo
master
.
io
Step:
Start: Find the longest palindrome that can be built from "abccccdd"