All Easy Articles
A sequence of n numbers (n < 3000) is called Jolly Jumper if the absolute values of the differences between the successive elements take on… Read More
Given a simple expression tree, consisting of basic binary operators i.e., + , – ,* and / and some integers, evaluate the expression tree. Examples:… Read More
You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. A pair (c, d) can… Read More
Some of the mathematical functions are discussed in below set 1, set 2 and set 3 Mathematical Functions in Python | Set 1 (Numeric Functions)… Read More
Before Java 8, interfaces could have only abstract methods. The implementation of these methods has to be provided in a separate class. So, if a… Read More
Some of the mathematical functions are discussed in below set 1 and set 2 Mathematical Functions in Python | Set 1 (Numeric Functions) Mathematical Functions… Read More
Started with 2 simple data structure programs and 30 aptitude questions; luckily cleared this round and qualified for the in-person interview. I was asked only data… Read More
Given a number x, determine whether the given number is Armstrong’s number or not. A positive integer of n digits is called an Armstrong number… Read More
Given a number x, determine whether the given number is Armstrong number or not. A positive integer of n digits is called an Armstrong number… Read More
Introduced in Java 8, Stream API is used to process collections of objects. A stream in Java is a sequence of objects that supports various… Read More
We use two operators * (for tuples) and ** (for dictionaries).  Background Consider a situation where we have a function that receives four arguments. We want… Read More
The Maximum Sum Increasing Subsequence problem is to find the maximum sum subsequence of a given sequence such that all elements of the subsequence are… Read More
Some of the list methods are mentioned in set 1 below List Methods in Python | Set 1 (in, not in, len(), min(), max()…) More… Read More
I recently go interviewed for MakeMyTrip Developer position. I had 5 rounds: Round 1: 1) Reverse a Linked List – You should be able to… Read More
Predict the output below program #include<iostream> using namespace std; int main() {     int x = 1 , y = 1, z = 1;        cout… Read More
A palindromic prime (sometimes called a palprime) is a prime number that is also a palindromic number. Given a number n, print all palindromic primes smaller… Read More
The Longest Common Extension (LCE) problem considers a string s and computes, for each pair (L , R), the longest sub string of s that… Read More
The heap data structure can be implemented in a range using STL which provides faster max or min item retrieval, and faster insertion and deletion… Read More
Solution to removing spaces from a string is already posted here. In this article another solution using stringstream is discussed. Algorithm:  1. Enter the whole… Read More
You are given n days and for each day (di) you could either perform a high effort tasks (hi) or a low effort tasks (li)… Read More