Tip 1 : Solve Code chef long challenges
Tip 2 : Solve at least problem A, B,C of codeforces competition(help to solve problems in time limit).
Tip 3 : Having at least 1 good project is a plus point.
Tip 1 : Not more than 2 pages(1 page is good)
Tip 2 : Must know about each and every point in the resume.
Tip 3 : There should be no grammatical error in the resume.



Input: ARR[] = {3, 5, 10, 15, 17, 12, 9}, K = 4
Output: 62
Then disjoint pairs with the absolute difference less than K are
(3, 5), (10, 12), (15, 17)
So maximum sum which we can get is 3 + 5 + 12 + 10 + 15 + 17 = 62
Note that an alternate way to form disjoint pairs is, (3, 5), (9, 12), (15, 17), but this pairing produces a lesser sum.



• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.

This is the binary search tree made by Ninja. But here, the left node of 8 is greater, and the right node is smaller.
If we swap the right and the left node of 8 Ninja’s Binary Search Tree will become correct.

This is the correct binary Search Tree.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the output of print(type("Python"))?