Skip to content

Tag Archives: Facebook

Given an integer array and a positive integer k, count all distinct pairs with differences equal to k.  Examples:  Input: arr[] = {1, 5, 3,… Read More
Consider a coding system for alphabets to integers where ‘a’ is represented as 1, ‘b’ as 2, .. ‘z’ as 26. Given an array of… Read More
Meet Prasoon, he was just your average guy who studied at IIIT-Hyderabad but today Prasoon Mishra is one of the most well know names across… Read More
Find the largest rectangular area possible in a given histogram where the largest rectangle can be made of a number of contiguous bars whose heights… Read More
Find the largest rectangular area possible in a given histogram where the largest rectangle can be made of a number of contiguous bars. For simplicity,… Read More
Even if we were to search around the world, it would be a truly difficult job to find someone like Ravi Kiran. As a Computer… Read More
I am a final year student of IIT Guwahati and the first phase of placements has just finished at our college. I was recruited by… 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
Greedy is an algorithmic paradigm that builds up a solution piece by piece, always choosing the next piece that offers the most obvious and immediate… Read More
Given that integers are read from a data stream. Find the median of elements read so for in an efficient way. For simplicity assume, there… Read More

Start Your Coding Journey Now!