All Medium Articles
Given an array which contains integer values, we need to make all values of this array equal to some integer value with minimum cost where… Read More
The Affine cipher is a type of monoalphabetic substitution cipher, wherein each letter in an alphabet is mapped to its numeric equivalent, encrypted using a… Read More
Given a directed graph, find out whether the graph is strongly connected or not. A directed graph is strongly connected if there is a path… Read More
Instruction execution in a processor is divided into 5 stages. Instruction Fetch(IF), Instruction Decode (ID), Operand Fetch(OF), Execute(EX), and Write Back(WB), These stages take 5,4,20,… Read More
The output of executing the following C program is ________. # include int total(int v) { static int count = 0; while (v) { count… Read More
A cache memory unit with capacity of N words and block size of B words is to be designed. If it is designed as direct… Read More
Consider the following two functions void fun1(int n){ if(n == 0) return; printf(“%d”, n); fun2(n-2); printf(“%d”, n); } void fun2(int n){ if(n == 0) return;… Read More
In a RSA cryptosystem a particular A uses two prime numbers p = 13 and q =17 to generate her public and private keys. If… Read More
If G is grammar with productions S → SaS | aSb | bSa | SS | ∈ where S is the start variable, then which… Read More
Given N number of coins, the task is to find probability of getting at least K number of heads after tossing all the N coins… Read More
Given two integers n and k, count the number of binary strings of length n with k as number of times adjacent 1’s appear. Examples: … Read More
Let X be a Gaussian random variable with mean 0 and variance σ2. Let Y = max(X,0) where max(a,b) is the maximum of a and… Read More
Arun, Gulab, Neel and Shweta must choose one shirt each from a pile of four shirts coloured red, pink, blue and white respectively. Arun dislikes… Read More
A contour line joins locations having the same height above the mean sea level. The following is a contour plot of a geographical region. Contour… Read More
\"The hold of the nationalist imagination on our colonial past is such that anything inadequately or improperly nationalist is just not history\" Which of the… Read More
Find the smallest number y such that y x 162 (y multiplied by 162) is a perfect cube. (A) 24 (B) 27 (C) 32 (D)… Read More
I went through an interview at Goldman Sachs in their Bengaluru office for Java Developer role, and I would like to share my experience with… Read More
1st Round (Telephonic) Work Experience Can a TCP Connection be secure Nginx Load balancing Algo How would a multiplayer game look like 2nd Round (ftf)… Read More
Prerequisite : Sparse Matrix and its representations Set 1 (Using Arrays and Linked Lists)In this post other two methods of sparse matrix representation are discussed. … Read More
Given an array of n non-negative integers. The task is to find frequency of a particular element in the arbitrary range of array[]. The range… Read More