Prerequisite – Dynamic Programming, How to solve Dynamic Programming problems? There are two different ways to store the values so that the values of a sub-problem… Read More

Given N points in 2-dimensional space, we need to print the count of the minimum number of lines which traverse through all these N points… Read More

Given a string, find the first repeated character in it. We need to find the character that occurs more than once and whose index of… Read More

Find original array from a given encrypted array of size n. Encrypted array is obtained by replacing each element of the original array by the… 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

Dynamic Programming (DP) is a technique that solves some particular type of problems in Polynomial Time. Dynamic Programming solutions are faster than the exponential brute… Read More

Java.util.Locale Class in Java | Set 1 More methods: Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with… Read More

As the name suggests util.Locale Class is used to perform locale task and provides locale information for the user. Declaration : Attention reader! Don’t stop learning… Read More

Write a short program that prints each number from 1 to n on a new line. For each multiple of 3, print “Multiple of 3”… Read More

In most of the programming languages (C/C++, Java, etc), the use of else statement has been restricted with the if conditional statements. But Python also… Read More

Given a binary tree, count leaves in the tree without using recursion. A node is a leaf node if both left and right children of… Read More

Given a string which contains lower alphabetic characters, we need to remove at most one character from this string in such a way that frequency… 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

Recently I have gone through interview with Amazon Chennai for Amazon FIRE TV team. Here is my positive experience. Round 1(written): 1. Run Length Encoding… Read More

Prerequisite: Method Overloading, Autoboxing and Unboxing In Java there are two type of variables: Primitive type and Reference type. Conversion of primitive type to its… Read More