Find if sum of two nodes is equal to a given number in BST

Problem Statement:Given a binary search tree T, where each node contains a positive integer, and an integer K, you have to find whether or not there exist two different nodes A and B such that A.value + B.value = K.Return 1 to denote that t

Interview question - Given an array find four elements such that A + B = C + D

Problem Statement:Given an array A of integers, find the index of values that satisfy A + B = C + D, where A,B,C & D are integers values in the array.Note:1) Return the indices `A1 B1 C1 D1`, so that A[A1] + A[B1] = A[C1] + A[D1] A1

BitWise Operators - interview Questions

In this article I am going to present few interview problems that are directly based upon the concepts of bitwise operations. I would urge you to please go back and check BitWise Operators Basic Tutorial and BitWise Operators Advanced Trick