Palindrome Ancestor Path Queries
CodingOnline Assessment, PhoneSoftware EngineerReported Apr, 2026Medium Frequency
Company question banks are included with the Insider plan.
A disk stores hierarchical data as an undirected tree with treeNodes nodes numbered from 0 to treeNodes - 1, rooted at node 0.
You are given a string s of length treeNodes, where s[i] is...