Company: Intuit_16_jan
Difficulty: medium
Minimum Height body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; line-height: 1.6; color: #333; max-width: 800px; margin: 20px auto; padding: 0 15px; } h1, h2 { border-bottom: 2px solid #eee; padding-bottom: 10px; } h1 { font-size: 2em; } h2 { font-size: 1.5em; } code { background-color: #f4f4f4; padding: 2px 6px; border-radius: 4px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; } pre { background-color: #f4f4f4; padding: 15px; border-radius: 5px; overflow-x: auto; } strong { font-weight: 600; } ul { padding-left: 20px; } li { margin-bottom: 10px; } Minimum Height A database is represented as a rooted tree with tree_nodes tables, where Table 1 is the root. The tree structure is given by a list of edges. Up to max_operations operations are allowed. In one operation, you can: Select a child table u of a parent table v and remove the