Skip to content
All Medium Articles
Given two coordinates (x, y) and (a, b). Find if it is possible to reach (x, y) from (a, b). Only possible moves from any coordinate… Read More
Given a set of lines and a rectangular area of interest, the task is to remove lines that are outside the area of interest and… Read More
Given a string str we need to tell minimum characters to be added at front of string to make string palindrome.Examples:   Input : str =… Read More
Given an array of distinct positive integers, the task is to find the maximum product of increasing subsequence of size 3, i.e., we need to… Read More
Given an array of size n such that array elements are in range from 1 to n. The task is to count a number of… Read More
Round 1:  Tell me about yourself.  Trapping Rain Water:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute… Read More
A JAR (Java Archive) is a package file format typically used to aggregate many Java class files and associated metadata and resources (text, images, etc.)… Read More
Given a matrix of n*n size, the task is to print its elements in a diagonal pattern.     Input : mat[3][3] = {{1, 2, 3},… Read More
Given hypotenuse and area of a right angle triangle, get its base and height and if any triangle with given hypotenuse and area is not… Read More
In Java there are four types of references differentiated on the way by which they are garbage collected. Strong References Weak References Soft References Phantom… Read More
Given an array of integers. Find the pair in an array that has a minimum XOR value. Examples :   Input : arr[] = {9, 5, 3}… Read More
Given a binary tree with a value associated with each node, we need to choose a subset of these nodes such that the sum of… Read More
Given an array arr of N integer elements, the task is to find the sum of the average of all subsets of this array. Example:  … Read More
Round 1- 90-100 min First Ques- So what you know about Amazon- I wasn’t prepared to start my interview with this ques. But I had… Read More
The objective of the program given is to perform edge detection of images in real-time. In this article, the popular canny edge detection algorithm is… Read More
Given a string, the task is to count all palindrome sub string in a given string. Length of palindrome sub string is greater than or… Read More
Prerequisite : Stop and Wait ARQ The Stop and Wait ARQ offers error and flow control, but may cause big performance issues as sender always… Read More
The File class is Java’s representation of a file or directory path name. Because file and directory names have different formats on different platforms, a simple… Read More
Given a connected and undirected graph, a spanning tree of that graph is a subgraph that is a tree and connects all the vertices together.… Read More
 Lossless join decomposition is a decomposition of a relation R into relations R1,R2 such that if we perform natural join of relation R1 and R2,… Read More