There were supposed to be 4 rounds. 1 coding and 3 face-to-face. 1st Round: Hackerrank, 4 coding questions and 1 hour limit. Not necessary to… Read More »

Given N – 1 differences between two consecutive elements of an array containing N numbers which are in range of 1 to N. The task… Read More »

Given a number N, the task is to find the Prime Numbers from 1 to N using Command Line Arguments. Examples: Input: N = 7… Read More »

Given a permutation P (P1, P2, P3, … Pn) of first n natural numbers. Find the minimum number of operations to convert it into an… Read More »

Given an integer N, the task is to generate all possible binary strings of length N which contain “01” as the sub-string exactly twice. Examples:… Read More »

sum command in Linux is used to find checksum and count the blocks in a file. Basically, this command is used to show the checksum… Read More »

Given an integer K, the task is to find the length of the smallest no. N which is divisible by K and formed by using… Read More »

Given an array arr[] containing GCD of every possible pair of elements of another array. The task is to find the original numbers which are… Read More »

Interviewed for Amazon SDE – II with total experience of 1.5 years. Round 1 (Telephonic Screening): Q1. Given a number ‘n’ find the total number… Read More »

LinkedIn resume filtering: I received a mail from the recruiter of Google asking about my resume. After a few days, he called me to ask for… Read More »

Given an array arr[] of N elements and a positive integer K. The task is to find the longest sub-sequence in the array having LCM… Read More »

Given an unsorted array arr[] of n integers and an integer k, the task is to find the kth largest element in the given index… Read More »

Given a string str consisting only of the characters ‘a’, ‘b’ and ‘c’, find the number of sub-strings that do not contain all the three… Read More »

In the below article, we are going to find the number of Boolean Functions possible from the given sets of binary number. Statement-1: Suppose two… Read More »

Given an array that represents a tree in such a way that array indexes are values in tree nodes and array values give the parent… Read More »

Given an array arr[] of size n. The task is to count the number of possible sub-arrays such that their elements can be re-arranged to… Read More »

Given an integer N ≥ 2, you can split the number as a sum of k integers i.e. N = k1 + k2 + …… Read More »

Round 1: Went through my work experience and resume, got asked a bunch of soft questions like what was my most impactful work project, how… Read More »

Given an array arr[] of N integers and an integer K, one can move from an index i to any other j if j ≤… Read More »

Given a string str, the task is to find the longest prefix which is also the suffix of the given string. The prefix and suffix… Read More »