Round 2: Paper written coding 1) Given an unsorted array with a group of characters taken from the user. Find the first occurrence of non… Read More

All Medium Articles

1. Written Round : 1) 30 Aptitude questions(30 min). 2) 2-Coding questions(30 min). 2-a) Write an algorithm for dutch national flag problem 2-b) Write an… Read More

Many people are very afraid of behavioural interview questions in technical interviews as they seem to be just something most programmers are not good… Read More

Geeksforgeeks has helped me a lot. In order to help other students I would like to share my experience. Step 1: I applied through a… Read More

Inversion Count for an array indicates – how far (or close) the array is from being sorted. If an array is already sorted then the… Read More

Inversion Count for an array indicates – how far (or close) the array is from being sorted. If array is already sorted then inversion count… Read More

A TCP message consisting of 2100 bytes is passed to IP for delivery across two networks. The first network can carry a maximum payload of… Read More

Consider a simplified time slotted MAC protocol, where each host always has data to send and transmits with probability p = 0.2 in every slot.… Read More

Given a large number n and a prime p, how to efficiently compute n! % p?Examples : Input: n = 5, p = 13 Output:… Read More

I was interviewed on-campus for Software Development Engineering (SDE1) role Flipkart. Coding round: (90 minutes) Coding round was done on hackerrank . Given two numbers… Read More

In this post, we will discuss Important top 10 algorithms and data structures for competitive coding. Topics : Graph algorithms Dynamic programming Searching and… Read More

Mira and Ram can do a piece of work in 6 and 9 days respectively; If they work on alternate days starting with Mira on the first day.… Read More

What is rank of a matrix? Rank of a matrix A of size M x N is defined as (a) Maximum number of linearly independent column vectors… Read More

Given a number n, check if it is prime or not. We have introduced and discussed School and Fermat methods for primality testing.Primality Test |… Read More

We are given two arrays num[0..k-1] and rem[0..k-1]. In num[0..k-1], every pair is coprime (gcd for every pair is 1). We need to find minimum… Read More

GeeksOfGeeks has helped me a lot, so, thought of making a little contribution from my side. Amazon Interview for Position SDE II Round 1: The… Read More

Given three numbers n, r and p, compute value of nCr mod p.Examples: Input: n = 10, r = 2, p = 13 Output: 6… Read More

Internet has a great influence in our lives. We may or may not realize, but it has changed a lot in our lives. We are… Read More

Given a sorted array arr[] of size n and an element x to be searched in it. Return index of x if it is present… Read More

In this post “Top 10 coding problems of important topics with their solutions ” are written. If you are preparing for a coding interview, going through… Read More