Nth Root of M Problem
Nth Root of M Problem — ExecCode Easy DSA Practice
Solve the Nth Root of M problem on ExecCode. Free online easy DSA practice in Binary Search. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Description You are given the input needed to solve Nth Root of M. Your task is to compute the required answer and return nth root (decimal string). A hierarchy is stored as a tree, and each parent-child link affects the final answer. In Nth Root of M, you must respect the tree structure instead of treating values as a flat list. JSON m and n.
Examples
Input {"m": 27.0, "n": 3}; Output 3.0
Constraints
Binary search on answer
Practice Nth Root of M free on ExecCode. Browse DSA problems, topic map, and placement guides.