Round 1: Coding Sample In this coding sample, I was given 90 minutes to answer 2 coding questions. Question 1: Given a string A consisting… Read More

Given a positive integer ‘n’ and query ‘q’. Print all the divisors of number ‘n’. Input: 6 Output: 1 2 3 6 Explanation Divisors of… Read More

Round 1: HackerRank Test Two coding questions were given , which needs to be solved in 1 hour. Very simple level questions. Given a string,… Read More

I have interviewed with Goldmanc sachs in Nov-17. The process is very slow as in my case first round was started in Sept-17 and last round… Read More

Consider a n*n matrix. Suppose each cell in the matrix has a value assigned. We can go from each cell in row i to a… Read More

Given a non-negative number n. The problem is to unset the last m bits in the binary representation of n.Constraint: 1 <= m <= num,… Read More

When an object moves in a straight line at a steady speed, we can calculate its speed if we know how far it travels and… Read More

Given a matrix of order m*n then the task is to find the frequency of even and odd numbers in matrix Examples: Input : m =… Read More

Motivation behind Carry Look-Ahead Adder : In ripple carry adders, for each adder block, the two bits that are to be added are available instantly. However,… Read More

TCS changed its campus recuritment process recently. Round 1: Nearly 1200 students attended first round. It consists of 4 sections. Each Section has time limits.… Read More

There is a Linux hack which can be used to display a custom message on the terminal every time we open it. This can be… Read More

Prerequisite : Loops in Python To check whether a number is positive, negative, odd, even or zero. This problem is solved using if…elif…else and nested… Read More

Infosys uses DevSquare Online Assessment to conduct its First Round. DevSquare Test Papers are easily Available on the Internet. Round 1: These were the following… Read More

A hexagon is a 6-sided, 2-dimensional geometric figure. The total of the internal angles of any hexagon is 720°. A regular hexagon has 6 rotational… Read More

Prerequisite : Dictionary data structure Given a string, Find the 1st repeated word in a string. Examples: Input : "Ravi had been saying that he… Read More