Add office photos
LinkedIn  logo
Employer?
Claim Account for FREE

LinkedIn

4.3
based on 183 Reviews
Video summary
Filter interviews by
Software Developer Intern
Fresher
Clear (1)

LinkedIn Software Developer Intern Interview Questions and Answers

Updated 5 Feb 2024

Q1. Determine Count of Good Triplets

You are given two arrays ARR1 and ARR2, containing N and M elements respectively. There are two types of 'good triplets' that need to be identified in these arrays.

Type 1: A tr...read more

Ans.

Calculate the total number of 'good triplets' in two arrays based on given conditions.

  • Iterate through all possible triplets in both arrays and check if they satisfy the conditions

  • Use nested loops to iterate through all combinations of indices in both arrays

  • Check the conditions for Type 1 and Type 2 'good triplets' separately

  • Increment a counter for each valid 'good triplet' found

  • Return the total count of 'good triplets' for each test case

Add your answer
right arrow

Q2. Split the String Problem Statement

You are given a string str consisting of N lowercase alphabets. Your task is to determine if it is possible to divide the string into three non-empty substrings such that one ...read more

Ans.

Given a string, determine if it can be split into three non-empty substrings where one is a substring of the other two.

  • Check if any substring of the string is a substring of the other two substrings.

  • Iterate through all possible divisions of the string into three non-empty substrings.

  • Use two pointers to find all possible substrings efficiently.

Add your answer
right arrow
LinkedIn Software Developer Intern Interview Questions and Answers for Freshers
illustration image

Q3. DFS Traversal Problem Statement

Given an undirected and disconnected graph G(V, E), where V is the number of vertices and E is the number of edges, the connections between vertices are provided in the 'GRAPH' m...read more

Ans.

DFS traversal to find connected components in an undirected and disconnected graph.

  • Use Depth First Search (DFS) to traverse the graph and find connected components

  • Maintain a visited array to keep track of visited vertices

  • For each unvisited vertex, perform DFS to explore the connected component it belongs to

  • Print the vertices of each connected component in ascending order

Add your answer
right arrow

Q4. Median of Two Sorted Arrays Problem Statement

Given two sorted integer arrays A and B with sizes N and M respectively, find the median of the combined array that results from merging arrays A and B. If the tota...read more

Ans.

Find the median of two sorted arrays after merging them.

  • Merge the two sorted arrays into one sorted array.

  • Calculate the median based on the length of the combined array.

  • Handle cases where the total number of elements is even or odd.

Add your answer
right arrow
Discover LinkedIn interview dos and don'ts from real experiences

Q5. Check if Two Trees are Mirror

Given two arbitrary binary trees, your task is to determine whether these two trees are mirrors of each other.

Explanation:

Two trees are considered mirror of each other if:

  • The r...read more
Ans.

Check if two binary trees are mirrors of each other based on specific criteria.

  • Compare the roots of both trees.

  • Check if the left subtree of the first tree is the mirror of the right subtree of the second tree.

  • Verify if the right subtree of the first tree is the mirror of the left subtree of the second tree.

Add your answer
right arrow

Q6. Snake and Ladder Problem Statement

Given a 'Snake and Ladder' board with N rows and N columns, where positions are numbered from 1 to (N*N) starting from the bottom left, alternating direction each row, find th...read more

Ans.

Find the minimum number of dice throws required to reach the last cell on a 'Snake and Ladder' board.

  • Use Breadth First Search (BFS) to find the shortest path from the starting cell to the last cell.

  • Maintain a queue to explore all possible moves from each cell.

  • Consider the effect of snakes and ladders on the movement of the player.

  • Handle the case where the last cell is unreachable by returning -1.

  • Optimize the solution by using a visited array to avoid revisiting cells.

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at LinkedIn Software Developer Intern

based on 1 interviews
Interview experience
4.0
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Intern Interview Questions from Similar Companies

View all
Recently Viewed
SALARIES
Telecom Network Solutions
INTERVIEWS
Extramarks Education
No Interviews
SALARIES
DreamGains Financials India
SALARIES
Telecom Network Solutions
INTERVIEWS
OneBanc Technologies
No Interviews
INTERVIEWS
ZeMoSo Technologies
No Interviews
LIST OF COMPANIES
DreamGains Financials India
Overview
SALARIES
Telecom Network Solutions
SALARIES
Telecom Network Solutions
INTERVIEWS
WebKorps Solutions
No Interviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter