All Stories

Count Complete Tree Nodes

According to Wikipedia, every level, except possibly the last, is completely filled in a complete binary tree, and all nodes in the last level are as far left as possible....

Binary Tree Right Side View

Today we will discuss another Binary Tree problem.

Level Order Traversal of Binary Tree

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child. Today...

Find First and Last Position of Element in Sorted Array

Binary Search is a specialized algorithm compared to a normal sequential search. The concept of Binary Search is to search for the element very efficiently by dividing the input into...

Kth Largest Element in an Array

Today we are going to discuss another LeetCode problem.

Implementing Queue using Stacks

We have done some problems using stack and today we are trying to do more of a conceptual exercise.