All Medium Articles
In this article, image analysis using Matplotlib and OpenCV is discussed. Let’s first understand how to experiment image data with various styles and how to… Read More
You may first like to read: How Google Search Works! Let’s now have a look at some important terminology: Search Engine:  A program that searches… Read More
Given an array representing n positions along a straight line. Find k (where k <= n) elements from the array such that the minimum distance… Read More
Suppose you are creating an account on Geekbook, you want to enter a cool username, you entered it and got a message, “Username is already… Read More
One fascinating area of research uses GPS to track the movements of animals. It is now possible to manufacture a small GPS device that is… Read More
Given a matrix of size n x n, find the sum of the Zigzag sequence with the largest sum. A zigzag sequence starts from the… Read More
What is Prufer Code? Given a tree (represented as graph, not as a rooted tree) with n labeled nodes with labels from 1 to n, a… Read More
Given N lines and one starting point and destination point in 2-dimensional space. These N lines divide the space into some blocks. We need to… Read More
I had applied to Amazon Hyderbad off campus for SDE-1 role. The first round a telephonic round. It was a technical round. The questions asked… Read More
Given a number n, find the Largest number smaller than or equal to n and digits in non-decreasing order.  Examples:  Input : n = 200… Read More
Merge sort involves recursively splitting the array into 2 parts, sorting and finally merging them. A variant of merge sort is called 3-way merge sort… Read More
Clear the Terminal : In our daily life, we use to work on Terminal if we are using LINUX. Continuous working on terminal makes the terminal screen… Read More
Steps to solve a Dynamic programming problem:Identify if it is a Dynamic programming problem.Decide a state expression with the Least parameters.Formulate state and transition relationship.Apply… Read More
Given a binary N x N matrix, we need to find the total number of matrix positions from which there is an endless path. Any… Read More
Let us go through the basic pre-requisites such as Method Overloading, Autoboxing, and Unboxing. So method overloading in java is based on the number and… Read More
It is a priority queue based on priority heap. Elements in this class are in natural order or depends on the Constructor we used at… Read More
Java provides a feature to make the code more robust and to cut down the lines of code. This feature is known as Automatic Resource… Read More
Given two positive integers A and B, we can change at most K bits in both the numbers to make OR of them equal to… Read More
How to write a C program to print “Hello world” without main() function? At first, it seems impractical to execute a program without a main()… Read More
Given a positive integer n, count distinct number of pairs (x, y) that satisfy following conditions :  (x + y) is a prime number.(x +… Read More