All Easy Articles
Let a memory have four free blocks of sizes 4k, 8k, 20k, 2k. These blocks are allocated following the best-fit strategy. The allocation requests are… Read More
Note: This post contains codes that cannot be run using an online compiler. Please make sure that you have Python 2.7 and cv2 module installed… Read More
The characters a to h have the set of frequencies based on the first 8 Fibonacci numbers as follows a : 1, b : 1,… Read More
The following is the explanation to the C++ code to blur an Image in C++ using the tool OpenCV. Things to know: (1) The code will only… Read More
Machine Learning”. Now that’s a word that packs a punch! Machine learning is hot stuff these days! And why won’t it be? Almost every “enticing”… Read More
A mother tells her two children, a boy and a girl, to play without getting dirty. However, while playing, both children get mud on their… Read More
In our previous discussion Strategy Design Pattern, we explored the Strategy Design Pattern, a powerful tool in software design. We learned what it is, its… Read More
Converting a string to int is one of the most frequently encountered tasks in C++. As both string and int are not in the same… Read More
Place the numbers 1, 2, 3, 4, 5, 6, 7, 8 into the eight circles in figure given below, in such a way that no… Read More
Given a BST (Binary Search Tree) that may be unbalanced, convert it into a balanced BST that has minimum possible height. Examples :  Input: 30… Read More
Given a number, print floor of 5’th root of the number.Examples:   Input : n = 32 Output : 2 2 raise to power 5 is… Read More
John earns 33.33% more than Peter. By what percentage is Peter’s earning less than that of John’s? (A) 22 % (B) 25 % (C) 26… Read More
The questions from this section are generally of two types : One / Two blanks – In these type of questions, we are given a… Read More
Many programming contest problems are somehow related Prime Numbers. Either we are required to check Prime Numbers, or we are asked to perform certain functions… Read More
Prerequisite: It is recommended to refer Interesting facts about Bitwise Operators How to set a bit in the number ‘num’: If we want to set… Read More
We have discussed Pizza design problem and different naive approaches to solve it in set 1. We have also introduced Decorator pattern in Set 2.… Read More
The Decorator Design Pattern in JavaScript is a structural design pattern that allows behavior to be added to individual objects dynamically, without affecting the behavior… Read More
Hey guys, a pool campus drive for North-East India has been conducted by SAP Labs India in Guwahati, Assam. The selection process is divided into… Read More
The Decorator Design Pattern is a structural design pattern that allows behavior to be added to individual objects dynamically, without affecting the behavior of other… Read More
There are 20 people standing in a line, one behind the other. Each is made to wear a hat, which can either be white or… Read More