Tip 1 : Practice at Atleast 250 Questions
Tip 2 : Do at least 2 projects
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.
For the given binary tree and X = 9
{1, 3, 6} is a valid triplet because 6 is a node whose parent is 3 and grand-parent is 1. Also, the sum of these nodes is 1 + 3 + 6 = 10 which is strictly greater than X = 9.
You have been given a Binary Tree of integers and an integer 'X'. Find all the triplets in the tree whose sum is strictly greater than 'X'. The nodes in the triplet must hold the relationship of grandparent-parent-child.
Anagrams are defined as words or names that can be formed by rearranging the letters of another word. Such as "spar" can be formed by rearranging letters of "rasp". Hence, "spar" and "rasp" are anagrams.
'triangle' and 'integral'
'listen' and 'silent'
Since it is a binary problem, there is no partial marking. Marks will only be awarded if you get all the test cases correct.
Input: [1,2,3,4,5]
Output: [5,4,3,2,1]
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What does dict.keys() return?