Flipkart | SDE 1

660
Sep 26, 2023
Sep 28, 2023

Second Round of Inteview: PS-DS(problem solving & data structures)

  1. Rotten Oranges - Leetcode Medium
  2. [house-robber-iii] Find maximum sum of binary tree nodes with given condition:
    • We cannot choose a node value in total sum if its childrens are selected.

Example
image

Answer = 10 (5 + 1 + 4).
Comments (6)