All Easy Articles
Object cloning refers to the creation of an exact copy of an object. It creates a new instance of the class of the current object… Read More
A Diophantine equation is a polynomial equation, usually in two or more unknowns, such that only the integral solutions are required. An Integral solution is… Read More
1) Storage class 2) register qualifier 3) Const int *p and cont *int p; 4) Reverse a link list 5) Program to generate a packet(specifications… Read More
The following is the explanation to the C++ code for coin detection in C++ using the tool OpenCV. Things to know: The code will only… Read More
I can walk 3 miles per hour uphill and 4 miles per hour on flat land and 6 miles per hour downhill. If I reached… Read More
1. Find square root of number without using sqrt function 2. Given a directed graph. Construct another graph from given graph such that if path… Read More
Given a singly linked list of 0s and 1s find its decimal equivalent. Input : 0->0->0->1->1->0->0->1->0 Output : 50 Input : 1->0->0 Output : 4… Read More
  Decidable Problems A problem is decidable if we can construct a Turing machine which will halt in finite amount of time for every input… Read More
Given a number positive number n, find value of f0 + f1 + f2 + …. + fn where fi indicates i’th Fibonacci number. Remember… Read More
Given an array representation of min Heap, convert it to max Heap. Examples:  Input: arr[] = {3, 5, 9, 6, 8, 20, 10, 12, 18,… Read More
Alex’s friend Grace drops her every day to work in the morning to her office, but cannot help to drop her back home in the… Read More
Given an integer s and d, The task is to find the largest number with given digit sum s and the number of digits d.… Read More
How to find the smallest number with given digit sum s and number of digits d? Examples :   Input : s = 9, d = 2… Read More
Online Written Test: Multiple choice questions on aptitude and programming 2 coding questions. F2F R1 1) Given a string of any length. print all possible… Read More
Moore and Mealy Machines are Transducers that help in producing outputs based on the input of the current state or previous state. In this article… Read More
Given a string str of length n (1 <= n <= 106) and a number k, the task is to find the kth non-repeating character… Read More
Given a number, print all possible combinations of strings that can be used to dial the given number in a phone with following specifications. In… Read More
Standard C library provides qsort function that can be used for sorting an array. Following is the prototype of qsort() function. // Sort an array… Read More
Prerequisite – Vector Basics Following are some important points that can save time on little things in an interview or an important coding contest. vector… Read More
Given a grid of numbers, find maximum length Snake sequence and print it. If multiple snake sequences exists with the maximum length, print any one… Read More