Problem 3615 · Hard

Longest Palindromic Path in Graph

Grow a palindrome outward from its center along a simple path, tracking the two endpoints and the visited nodes as a bitmask.

Open the interactive visualisation