Rohan bought a new house. Everything in it was state of the art. The refrigerator was stainless steel, ovens were electric, even the windows were… Read More

Given a polynomial as a string and a value. Evaluate polynomial’s derivative for the given value. Note: The input format is such that there is a… Read More

Given an array A[] of n-elements. We need to select two adjacent elements and delete the larger of them and store smaller of them to… Read More

Prerequisite : Sql Create Clause, As the name suggests, DESCRIBE is used to describe something. Since in database we have tables, that’s why we use… Read More

Consider the following relational database schema: EMP (eno name, age) PROJ (pno name) INVOLVED (eno, pno) EMP contains information about employees. PROJ about projects and… Read More

Given N and K, print a string that has n characters. The string should have exactly k distinct characters and no adjacent positions.Examples: Input :… Read More

An operating system handles requests to resources as follows. A process (which asks for some resources, uses them for some time and then exits the… Read More

A program P reads and processes 1000 consecutive records from a sequential file F stored on device D without using any file system facilities. Given… Read More

Given a binary string. We need to find the length of the longest balanced substring. A substring is balanced if it contains an equal number… Read More

Switching algebra is also known as Boolean Algebra. It is used to analyze digital gates and circuits It is logic to perform mathematical operation on… Read More

A concurrent system consists of 3 processes using a shared resource R in a non-preemptible and mutually exclusive manner. The processes have unique priorities in… Read More

Following floating point number format is given f is a fraction represented by a 6-bit mantissa (includes sign bit) in sign magnitude form e is… Read More

Canonical Form – In Boolean algebra,Boolean function can be expressed as Canonical Disjunctive Normal Form known as minterm and some are expressed as Canonical Conjunctive… Read More

Given an array of positive and negative numbers, arrange them such that all negative integers appear before all the positive integers in the array without… Read More