Archive of posts with category 'Recursion'

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.