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

# Tag Archives: Linkedin

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 a number N, find the number of ways to represent this number as a sum of 2 or more consecutive natural numbers. Examples: Input… 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 Knight and position of a target is given. We need to find out… Read More

Given an array of n elements, the task is to find the greatest number such that it is product of two elements of given array.… 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 containing alphanumeric characters, calculate sum of all numbers present in the string. Examples: Input: 1abc23 Output: 24 Input: geeks4geeks Output: 4 Input:… Read More

We are given two sorted array. We need to merge these two arrays such that the initial numbers (after complete sorting) are in the first… Read More