Vivek SrivastavainTechie DelightOnline Compiler — C, C++, Java, PythonTechie Delight provides a quick and easy way to compile and execute code online in several popular programming languages such as C, C++…Dec 7, 2023Dec 7, 2023
Vivek SrivastavainTechie DelightInvert Alternate Levels ProblemGiven the root of a perfect binary tree, invert alternate levels of it.Nov 11, 2023Nov 11, 2023
Vivek SrivastavainTechie DelightAlternate Levels Sum Difference ProblemGiven the root of a binary tree, return the difference between the sum of all nodes present at odd levels and the sum of all nodes present…Nov 11, 2023Nov 11, 2023
Vivek SrivastavainTechie DelightNode Descendant Difference ProblemGiven the root of a binary tree, return the maximum difference between a node and its descendants in the binary tree. You may assume that…Nov 11, 2023Nov 11, 2023
Vivek SrivastavainTechie DelightMirror Of Binary Tree ProblemGiven the root of a binary tree, convert the binary tree into its mirror.Nov 11, 2023Nov 11, 2023
Vivek SrivastavainTechie DelightMinimum Depth Binary Tree ProblemGiven the root of a binary tree, return the minimum depth of the binary tree. The minimum depth is the total number of nodes along the…Nov 11, 2023Nov 11, 2023
Vivek SrivastavainTechie DelightDiagonal Traversal Binary Tree ProblemGiven the root of a binary tree, return the diagonal traversal of its nodes’ values. The solution should process all nodes for each…Nov 11, 2023Nov 11, 2023
Vivek SrivastavainTechie DelightDiagonal Sum Binary Tree ProblemGiven the root of a binary tree, return the sum of all nodes for each diagonal having negative slope `\`. Assume that the left and right…Nov 11, 2023Nov 11, 2023
Vivek SrivastavainTechie DelightDistance Between Two Nodes ProblemGiven the root of a binary tree and two tree nodes, x and y, return the distance between x and y in the binary tree. The distance between…Nov 11, 2023Nov 11, 2023
Vivek SrivastavainTechie DelightConvert Binary Tree To BST ProblemGiven the root of a binary tree, convert the binary tree into a binary search tree (BST) by keeping its original structure intact.Nov 11, 2023Nov 11, 2023