All Hard Articles
Given a string s of length n, count the number of substrings having different types of palindromic characteristics. Palindromic Characteristic is the number of k-palindromes in… Read More
How many check bits are required for 16 bit data word to detect 2 bit errors and single bit correction using hamming code? (A) 5… Read More
Consider the following pseudocode: x : integer := 1 y : integer := 2 procedure add x := x + y procedure second (P: procedure)… Read More
Given a string of brackets, the task is to find the number of pairs of brackets involved in a balanced sequence in a given range.… Read More
Which of the following productions eliminate left recursion in the productions given below: S → Aa | b A → Ac | Sd | ε… Read More
A multiplexer combines four 100-Kbps channels using a time slot of 2 bits. What is the bit rate? (A) 100 Kbps (B) 200 Kbps (C)… Read More
Given N and D, find if it is possible to make two sets from first N natural numbers such that the difference between the sum… Read More
Given an array of n integers, slope of a line i. e., m and the intercept of the line i.e c, Count the number of… Read More
Given an array of N numbers. Find out the number of pairs i and j such that i < j and Ai and Aj have… Read More
Redundant links are used to provide a backup path when one link goes down but a Redundant link can sometimes cause switching loops. The main… Read More
Problem – Determine largest number in an array of n elements. Value of n is stored at address 2050 and array starts from address 2051.… Read More
SQLite – Introduction SQLite is an in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. It is a popular choice as an… Read More
Given two sorted arrays, a[] and b[] os size n and m, the task is to find the median of these sorted arrays, in O(log(min(n,… Read More
Given a set of N integers. Find how many subsets of given array have sum between A and B(inclusive).  Constraints:  1 ? N ? 34, -2… Read More
Given an array arr[] of n positive integers. The task is to check if there exist any subset of the array whose bitwise AND is… Read More
Round 1: Validate an infix arithmetic expression string (braces and brackets are similar to parentheses): (1+2)*{[90*3]-[67+8-9]} Proposed Ans: Djikstra’s Shunting yard Interviewer’s Ans: Parser Tree… Read More
Consider a N-bit plane frame buffer with W-bit wide lookup table with W > N. How many intensity levels are available at a time ?… Read More
Write the output of the following C program #include <stdio.h>     int main (void)   {   int shifty;   shifty = 0570;   shifty = shifty >>4;   shifty =… Read More
Python String expandtabs() Method specifies the amount of space to be substituted with the “\t” symbol in the string. Python String expandtabs() Method Syntax Syntax… Read More