UberCodingMembers
Palindrome Ancestor Path Queries
Members only
Hierarchical data is stored as a tree of character-labeled nodes rooted at node 0. For each query node, count how many ancestors (including the node itself) form a path string whose characters can be ...
SWE
tree
dfs
bitmask
palindromes
hashmap
prefix-sum
hard
Frequency
Single report
Last asked
2026-01-21
Stage
oa
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
