Given an array arr[] of N positive integers and an integer K. It is given that you start at position 0 and you can move… Read More »

Given a binary string str, the task is to find the minimum number of characters in the string that have to be replaced in order… Read More »

Packet Switching: A mode of data transmission in which a message is broken into a number of parts which are sent independently, over whatever route… Read More »

Given an array of positive integers of size greater than 2. The task is to find the minimum value of sum of consecutive difference modulus… Read More »

Given a string str consisting of upper case alphabets, numeric digits and arithmetic operators, the task is to group them into continuous sub-strings of same… Read More »

Tuple is a collection of elements. Tuples are heterogeneous data structures, i.e., is they can store elements of different data types. A tuple is immutable,… Read More »

In computer graphics, use graphics.h which provide direct functions to draw different coordinate shapes (like circle, rectangle etc). By using these functions we can draw… Read More »

Given two strings s1 and s2. The task is to take one character from first string and one character from second string and check if… Read More »

Prerequisite – Token Ring frame format, Efficiency Of Token Ring Token Ring protocol is a communication protocol used in Local Area Network (LAN). In a… Read More »

Prerequisite – Classification of top down parsers, FIRST Set, FOLLOW Set A top-down parser builds the parse tree from the top down, starting with the… Read More »

Given an array arr[] of N integer elements and an integer K. The task is to count all distinct arr[i] such that arr[i] appears at… Read More »

Given an n-ary tree rooted at vertex 1. The tree has n vertices and n-1 edges. Each node has a value associated with it and… Read More »

Given an array arr[] of integers and an array q[] of queries. For the ith query, index = q[i][0] and value = q[i][1]. The task… Read More »

Given an array arr[] of N positive integers, the task is to find the minimum LCM and GCD between elements of all possible sub-array. Examples:… Read More »

Prerequisite: Mealy and Moore Machines, Difference between Mealy machine and Moore machine In this article, we shall see a conversion of Moore to Mealy machine-… Read More »

Microsoft interview for 3.5 years experienced held at Delhi on 23rd Feb 2019. Round 1 (Written): 1) https://www.geeksforgeeks.org/function-to-check-if-a-singly-linked-list-is-palindrome/ 2) https://www.geeksforgeeks.org/zig-zag-traversal-of-a-binary-tree-using-recursion/ 3) https://www.geeksforgeeks.org/minimum-distance-between-two-occurrences-of-maximum/ Round 2 F2F:… Read More »

Prerequisite: Mealy and Moore Machines, Difference between Mealy machine and Moore machine In this article, we shall see a conversion of Moore to Mealy machine-… Read More »

The :input selector in jQuery is used to select input elements. This selector also used with button element. Syntax: $(“:input”) Note: jQuery :input selector not… Read More »

A Queue is used to represent a first-in, first out(FIFO) collection of objects. It is used when you need first-in, first-out access of items. It… Read More »

Given a sorted array A of n integers. The task is to find the sum of minimum of all possible subarrays of A. Examples: Input:… Read More »