Problem Statement: Given a sorted array of size N, search for a given element in the array. Examples: Example 1:

Continue reading## Level Order Traversal of a Binary Tree

Problem Statement: Level order traversal of a binary tree. Given the root node of the tree and you have to

Continue reading## Inorder Traversal of Binary Tree

Problem Statement: Given a Binary Tree. Find and print the inorder traversal of Binary Tree. Examples: Input: Output: The inOrder

Continue reading## Maximum Sum Path in Binary Tree

Problem Statement: Write a program to find the maximum sum path in a binary tree. A path in a binary

Continue reading## Sliding Window Maximum

Problem Statement: Given an array of integers arr, there is a sliding window of size k which is moving from

Continue reading## Zig Zag Traversal Of Binary Tree

Problem Statement: Given the root of a binary tree, return the zigzag level order traversal of Binary Tree. (i.e., from

Continue reading## Aggressive Cows : Detailed Solution

Problem Statement: There is a new barn with N stalls and C cows. The stalls are located on a straight

Continue reading## Next Greater Element Using Stack

Problem Statement: Given a circular integer array A, return the next greater element for every element in A. The next

Continue reading## Implement Min Stack : O(2N) and O(N) Space Complexity

Problem Statement: Implement Min Stack | O(2N) and O(N) Space Complexity. Design a stack that supports push, pop, top, and

Continue reading## Rotten Oranges : Min time to rot all oranges : BFS

Problem Statement: You will be given an m x n grid, where each cell has the following values : 2

Continue reading