in this video for that array discussed in the video the base case should be s==e ,how it would be s>e
because for left subtree base case is s=0 and e=0
and right for right subtree base case is s=6 and e==6
Base condition in treefromarray function
hello @tharun
this condition s>e is to handle the invalid cases.
for example s=3 and e=2 will not make any sense so return null for such cases.