Dragon Curve Sequence is an infinite binary sequence of 0s and 1s. The first term of the sequence is 1. From the next term, we… Read More »

What is the output of the following program? a. 1 b. 2 c. 3 d. 4 e. compile error Answer : C Explanation: Ternary… Read More »

Write a removeDuplicates() function which takes a list sorted in non-decreasing order and deletes any duplicate nodes from the list. The list should only be… Read More »

Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more. In 8085 microprocessor, the destination operand is… Read More »

Given a number, check whether it is even or odd. Input: n = 11 Output: Odd Input: n = 10 Output: Even Recommended: Please try… Read More »

Prerequisite – Domain Name Server Mapping a domain name to an IP Address is known as Name-Address Resolution. The Domain Name Server (DNS) Resolver performs… Read More »

Given a sequence of non-negative integers, say a1, a2, …, an. Only following actions can be performed on the given sequence: Subtract 1 from a[i]… Read More »

Java, being a platform independent programming language, doesn’t work on one-step-compilation. Instead, it involves a two-step execution, first through an OS independent compiler; and second,… Read More »

You have given an array which contain 1 to n element, your task is to sort this array in an efficient way and without replace… Read More »

Transpose of a directed graph G is another directed graph on the same set of vertices with all of the edges reversed compared to the… Read More »

For the given user input, get similar words through Enchant module. Enchant is a module in python which is used to check the spelling of… Read More »

Given a number n, find sum of digits on n when represented in different bases from 2 to n-1. Examples: Input : 5 Output :… Read More »

What is an image slider? Image Slider or Image Carousel is an expedient way to show multiple images on a website. Alluring flashy images can… Read More »

Given a String str , the task is to check if the sum of ASCII value of all characters is a Prime Number or not.… Read More »

Given a unweighted graph, a source and a destination, we need to find shortest path from source to destination in the graph in most optimal… Read More »

Given an array, we need to find the maximum sum of absolute difference of the array elements for a sequence of this array. Examples: Input… Read More »

Given a number ‘n’, check whether it is an emirpimes or not. An emirpimes(“semiprime” when spelled backwards) derives its definition from the way it is… Read More »

A computer has 16 pages of virtual address space but the size of main memory is only four frames. Initially the memory is empty. A… Read More »

Given a Linked List, task is to check whether the Linked List is sorted in Descending order or not? Examples : Input : 8 ->… Read More »

Prerequisites : Data Mining When we talk about data mining, we usually discuss about knowledge discovery from data. To get to know about the data… Read More »