Given an integer N and a 2D array cost[][3], where cost[i][0], cost[i][1], and cost[i][2] is the cost of painting ith house with colors red, blue,… Read More
Tag Archives: Linkedin
Given an array arr[] of size N, the task is to segregate even and odd numbers. Print all even numbers first, and then odd numbers.… Read More
Given two sorted arrays, arr[], brr[] of size N, and M, the task is to merge the two given arrays such that they form a… Read More
The HR contacted me after seeing my profile on LinkedIn . Round 1: It was a Hackerrank based online test . There were 3 questions… Read More
Round 1: First round was online coding round. It was hosted on hackerrank platform. 4 questions were there. First one was to check weather a… Read More
Recently LinkedIn visited our campus to hire interns for summer 2019. The process consisted of an online coding round followed by telephonic interviews. Online Coding… Read More
Four questions were asked on hackerrank online platform, they were 1. Anna has an array, num, of n integers. She can reduce the array by… Read More
Recently LinkedIn came to our college campus to hire FTE’s. The profile was SRE (Site Reliability Engineer). Here I am sharing my Interview Experience. The… Read More
Given two sorted arrays, we need to merge them in O((n+m)*log(n+m)) time with O(1) extra space into a sorted array, when n is the size… Read More
Given an integer N, the task is to find the number of ways to represent this number as a sum of 2 or more consecutive… Read More
Given two sorted arrays, the task is to merge them in a sorted manner.Examples: Input: arr1[] = { 1, 3, 4, 5}, arr2[] =… Read More
Given a square chessboard of N x N size, the position of the Knight and the position of a target are given. We need to… Read More
Given an array of n elements, the task is to find the greatest number such that it is the product of two elements of the… Read More
Given a string of length n of lowercase alphabet characters, we need to count total number of distinct substrings of this string. Examples: Input :… Read More
Given a string S containing alphanumeric characters, The task is to calculate the sum of all numbers present in the string. Examples: Input: 1abc23Output: 24Explanation:… Read More