Skip to content

Tag Archives: Google

In a party of N people, only one person is known to everyone. Such a person may be present in the party, if yes, (s)he… Read More
Given two Binary Search Trees(BST), print the elements of both BSTs in sorted form. The expected time complexity is O(m+n) where m is the number… Read More
Given an array arr[] of non-negative integers and an integer sum, find a subarray that adds to a given sum. Note: There may be more than… Read More
Write a function to connect all the adjacent nodes at the same level in a binary tree. Structure of the given Binary Tree node is… Read More
Given a Binary Tree, The task is to connect all the adjacent nodes at the same level starting from the left-most node of that level,… Read More
Given the root of a binary search tree and K as input, find Kth smallest element in BST. For example, in the following BST, if k… Read More
Asked by SG Given an array in which all numbers except two are repeated once. (i.e. we have 2n+2 numbers and n numbers are occurring twice… Read More

Start Your Coding Journey Now!