All Medium Articles
Samuel covers the distance from his home to his office at a speed of 25 km/hr and comes back at a speed of 4 km/hr.… Read More
The Strategy Design Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable, allowing clients to switch algorithms dynamically without altering the… Read More
Given two arrays v[] and w[] that represent values and weights associated with n items respectively. Find out the maximum value subset(Maximum Profit) of v[]… Read More
Given a number n, count number of n length strings with consecutive 1’s in them. Examples:  Input : n = 2 Output : 1 There… Read More
Laravel is an open-source PHP web application framework that has gained big popularity since its beginning in 2011. Created by Taylor Otwell, Laravel embodies the principles of Elegance,… Read More
Given two arrays v[] and w[] that represent values and weights associated with n items respectively. Find out the maximum value subset(Maximum Profit) of v[]… Read More
NOTE: Using an online compiler is not going to work here. Please install Python 2.7x and cv2, argparse modules to actually try out this example.… Read More
Perfect Binary Tree using Specific Level Order Traversal in Set 1. The earlier traversal was from Top to Bottom. In this post, Bottom to Top… Read More
Please note that the title is Functors (Not Functions)!! Consider a function that takes only one argument. However, while calling this function we have a… Read More
Given a number ‘n’ and a prime ‘p’, find square root of n under modulo p if it exists. Examples:   Input: n = 2, p =… Read More
Using volatile is yet another way (like synchronized, atomic wrapper) of making class thread-safe. Thread-safe means that a method or class instance can be used… Read More
Compound interest is a type of interest that is calculated on the initial principal and all of its subsequent accumulated interest. It is different from… Read More
Given a Binary Tree where all values are from 0 to n-1. Construct an ancestor matrix mat[n][n]. Ancestor matrix is defined as below. mat[i][j] =… Read More
Given a linked list, rearrange it such that the converted list should be of the form a < b > c < d > e… Read More
Amazon visited our campus. It started with a online coding round and followed by one telephonic and then 3 face to face interview and again… Read More
Round 1: Subjective written round Programming output questions on constant pointer, static variable, typedef, macro, virtual function, copy constuctor etc Also write codes for reverse… Read More
Given a Binary Tree, find vertical sum of the nodes that are in same vertical line. Print all sums through different vertical lines. Examples:  1… Read More
Interview Process : I applied through career page and got reply through mail for discussion about my internship project and final year project. After that… Read More
Mixture and alligation are important concepts in quantitative aptitude used to determine the ratio and cost of sale for a mixture made up of two… Read More
Are you struggling with percentage calculations and looking to improve your quantitative aptitude skills? Our collection of percentage aptitude questions is here to help! Developed… Read More