All Easy Articles

## GATE | GATE-CS-2005 | Question 44 2

What is the minimum number of ordered pairs of non-negative numbers that should be chosen to ensure that there are two pairs (a, b) and… Read More »

## GATE | GATE-CS-2005 | Question 31 2.6

Consider the following C-program: filter_none edit close play_arrow link brightness_4 code void foo(int n, int sum) {   int k = 0, j = 0;   if… Read More »

## GATE | GATE-CS-2005 | Question 23 2

Packets of the same session may be routed through different paths in (A) TCP, but not UDP (B) TCP and UDP (C) UDP, but not… Read More »

## Print first k digits of 1/n where n is a positive integer 2

Given a positive integer n, print first k digits after point in value of 1/n. Your program should avoid overflow and floating point arithmetic. Examples… Read More »

## SapientNitro Interview Experience 2

1. Recruitment process There was a written test which had four sections. Technical, Logical Reasoning, Quantitative Aptitude, Verbal Ability. Shortlisted candidate went for technical interview… Read More »

## GATE | GATE-CS-2006 | Question 74 2

Consider two cache organizations: The first one is 32 KB 2-way set associative with 32-byte block size. The second one is of the same size… Read More »

## Algorithms | Recursion | Question 9 2

filter_none edit close play_arrow link brightness_4 code #include<stdio.h> void crazy(int n,int a,int b) {     if (n <= 0)  return;     crazy(n-1, a, b+n);     printf(“%d %d %d\n”,n,a,b);… Read More »

## GATE | GATE-CS-2006 | Question 62 2

A CPU generates 32-bit virtual addresses. The page size is 4 KB. The processor has a translation look-aside buffer (TLB) which can hold a total… Read More »

## GATE | GATE-CS-2006 | Question 59 2

Consider the following translation scheme. S → ER R → *E{print(“*”);}R | ε E → F + E {print(“+”);} | F F → (S) |… Read More »

## GATE | GATE-CS-2006 | Question 45 2

Two computers C1 and C2 are configured as follows. C1 has IP address 203.197.2.53 and netmask 255.255.128.0. C2 has IP address 203.197.75.201 and netmask 255.255.192.0.… Read More »

## GATE | GATE-CS-2006 | Question 44 2

Station A uses 32 byte packets to transmit messages to Station B using a sliding window protocol. The round trip delay between A and B… Read More »

## Amazon Interview | Set 123 (On-Campus for Internship) 2

Online round: In this round there were 20 MCQ’s to solve and 2 coding question. Of the 20MCQ’s a couple of questions were on Quantitative… Read More »

## Samsung Interview Experience | Set 4 (Samsung Research Institute, Delhi) 2.5

I am an off-campus hire. Please find my interview experience below: 1) Initially two written test were conducted: a. First is aptitude (25 Arithmetic Aptitude… Read More »

## Amazon Interview | Set 118 (On-Campus for Internship) 2.3

The selection procedure consisted of an online round followed by two Personal Interviews. Online Round: The first round had 20 MCQs and two coding questions.… Read More »

## Print squares of first n natural numbers without using *, / and – 2.6

Given a natural number ‘n’, print squares of first n natural numbers without using *, / and -. Examples : Input: n = 5 Output:… Read More »

## A data structure for n elements and O(1) operations 2

Propose a data structure for the following: The data structure would hold elements from 0 to n-1. There is no order on the elements (no… Read More »

## Goldman Sachs Interview | Set 4 (On-Campus for Internship) 2.5

Goldman Sachs visited our campus for both full placement(NAPA) and internship. I am going to share my experience for internship. ROUND 1: There were in… Read More »

## Aricent Interview | Set 2 (On-Campus) 2

Round 1: Online Written test(AMCAT). Sections:          1.1 English.                English was pretty simple. The only hiccups were in the questions asking for the… Read More »

## Lexicographically minimum string rotation | Set 1 2.8

Write code to find lexicographic minimum in a circular array, e.g. for the array BCABDADAB, the lexicographic minimum is ABBCABDAD. Source: Google Written Test More… Read More »

## Microsoft Interview | Set 30 (On-Campus) 2.5

Online Round: 15 MCQ’s and 2 coding questions organized by CoCubes. Coding questions – Given a list of strings separated by space, return the position… Read More »