Skip to content

Tag Archives: Linkedin

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 : str… 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 arrays. We need to merge these two arrays such that the initial numbers (after complete sorting) are in the first… Read More
Given an array of numbers, return true if given array can represent preorder traversal of a Binary Search Tree, else return false. Expected time complexity… Read More
Given an array of integers, find the length of the longest sub-sequence such that elements in the subsequence are consecutive integers, the consecutive numbers can… Read More
Online round (1 hour on hackerrank): 1. There are ‘n’ ticket windows in the railway station, ith window has ai tickets available. Price of a… Read More
Given a string of lowercase ASCII characters, find all distinct continuous palindromic sub-strings of it. Examples: Input: str = "abaaa" Output: Below are 5 palindrome… Read More
ONLINE ROUND: 3 coding Questions in 1 hour : 1) Given a binary search tree and a key, if found return 1 else -1. 2)… Read More
LinkedIn Interview Experience (On Campus – Day 1) Online Round : 3 coding Questions in 1 hour : 1. We have to implement int getIntComplement(int… Read More
Serialization is to store tree in a file so that it can be later restored. The structure of tree must be maintained. Deserialization is reading… Read More
Online coding 1 hr, 3 Questions. 1. We have to implement getIntComplement() function , that will give complement of an given integer . 2. There… Read More
Below is my interview experience with linkedin India for software development intern. First there was an online round on hackerrank where they asked 4 simple… Read More
There are n stairs, a person standing at the bottom wants to reach the top. The person can climb either 1 stair or 2 stairs… Read More
Let 1 represent ‘A’, 2 represents ‘B’, etc. Given a digit sequence, count the number of possible decodings of the given digit sequence.  Examples:  Input:… Read More