ayoubed.com
  • Home
  • Problem Solving
  • Software Engineering
  • Books
  • Betterment
  • Author
Sign in Subscribe

trees

A collection of 1 post
Trees: Find the Minimum Difference of two floods
problem-solving

Trees: Find the Minimum Difference of two floods

A sewer drainage system is structured as a tree. Water enters the system at n nodes numbered from 0 to n-1 and flows through the tree to the root, which has the number 0. The tree structure is defined by an array parent, where parent[i] = j means that water
03 Oct 2021 2 min read
Page 1 of 1
ayoubed.com © 2026
Powered by Ghost