I solved it ! took a lot of time and hints but got it :)
@jegadheeswarank629028 күн бұрын
Day 26 of solving leetcode problem till i get a job. Your explanation is good.. i have solved it using brute force approach.. i came up with optimal approach but couldn't able to code by myself..
@soumyajitganguly259328 күн бұрын
I kind of did a branched brute force for this one. NlogN but separate code for wide trees vs deep trees. Maybe this is similar to what you solved 2 yrs back..
@genghisda23623 күн бұрын
can u write in one sentence what is 'max_other' variable ? is it the max length starting from root node, for every node ?
@Algorithmist21 күн бұрын
I describe it in the video, though not super clearly - it is the max that is from a branch not the parent's