Coding Topic
Tree OA Questions
Practice 209+ Tree coding questions from real online assessments. Filter by company, solve in the OAHelper editor, and prepare for company-wise OAs.
QuestionCompanyDifficulty
Toll Nodes on Tree Pathsmorgan stanleyMediumAncestral Key CodesmicrosoftHardHalf-Weight Tree Tourgoldman sachsMediumHeaviest Root-to-Leaf LeavesgoogleMediumSalesforce Data CollectionsalesforceHardGrandparent Divisible by SixamazonEasyChain Square Directed Tree Splitsiemens edaMediumSecure Message PropagationinmobiMediumMedian Path Sum From The RootgoogleHardFind Palindromes In A Rooted TreegoogleHardPalindromic Subtree StringsgoogleHardSubtree XOR RerootinggoogleMediumValidate Application Log TablestekionMediumLevel Order Traversal of a Binary TreekkrMediumTri-Color Level Rooting of a Wiring TreegoogleMediumStable Workload Treestower researchHardMinimum Root-to-Leaf Path with a Target SumcitadelMediumPalindromic Communication Pathsgoldman sachsHardMaximum Value on Tree PathsadobeMediumRecover Binary Search TreeamazonMediumMaximum Path Value in a Treegoldman sachsMediumCompany Hierarchy QueriessprinklrMediumSuper Nodes by Child Digit SumsflipkartMediumWhich Logs Are Valid BFS OrderszomatoMediumMax XOR Subtree QuerymotorqHardCount Pairs of Connectable ServersthoughtspotMediumDelete Edges into K ComponentsmastercardMediumDisk StoragedeshawMediumBuild a BST and Print Its Inorder TraversalpocketfmEasyBeautiful Nodes in a Path-Encoded Binary TreepocketfmMediumMinimum Cameras to Monitor a Binary TreethoughtspotHardCoin Harvest with Subtree Discountingethos lifeHardMicroservice Link Reliability Under a Connection CapuberHardMaximum Treasure Path in Enchanted Grovesde shawMediumBiggest Perfect Subtree After Removing Nodesamerican expressMediumMinimum Edge Reversals to Root the NetworkaristaMediumMaximum Path Sum in a Tree With Negative ValueszomatoMediumMinimum Server Disconnections in a Neural NetworkexpediaMediumMaximum Task Force ImpactphonepeMediumCousin Sum RewriteamazonMediumMinimum Sum Root-to-Leaf PathmetaMediumFirst Common Ancestor in a Parent-Array TreemetaMediumOptimal Two-Symbol Timed Prefix CodephonepeHardCollect Tree Coins Within Distance TwophonepeHardLeaf Sum of a Path-Built Binary TreepocketfmMediumGreater Sum TreeAppleMediumThread CountDIT intern hiring testMediumRe-Serialize a Binary Tree in PreordersamsungMediumMinimum Leaves To Remove For A Special TreemeeshoMediumGreater Sum Tree of a Sensor Reading BSTappleMedium