Check whether characters on a graph path between two nodes can form a palindrome.
Unlock detailed company stats for this questionUpgrade
Given an undirected graph rooted at 0 where each node i is represented by a lowercase English letter, and m queries each with a node_from and node_to, figure out whether the characters encountered while travelling from node_from to node_to can be used to form a palindrome.
Format · HackerRank OA.
Community answers
No answers contributed by the community yet.
Related questions
Check whether a path exists between two indices in a graph built from a sorted array.Given a tree with a character on each node, count the paths from each query node toward the root whose characters can be rearranged into a palindrome.Find the shortest path between two nodes in an undirected, unweighted graph.Related courses

Course

Course
Course
