Add office photos
Freshworks logo
Employer?
Claim Account for FREE

Freshworks

3.5
based on 702 Reviews
Video summary
Filter interviews by
Software Engineer
Fresher
Clear (1)

Freshworks Software Engineer Interview Questions and Answers

Updated 5 Feb 2024

Q1. Reverse Linked List Problem Statement

Given a singly linked list of integers, return the head of the reversed linked list.

Example:

Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed linked list: 4 -> 3 -> 2...read more
Ans.

Reverse a singly linked list of integers and return the head of the reversed linked list.

  • Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.

  • Use three pointers to keep track of the current, previous, and next nodes while reversing the linked list.

  • Update the head of the reversed linked list as the last node encountered during the reversal process.

Add your answer
right arrow

Q2. Sort Linked List Based on Actual Values

Given a Singly Linked List of integers that are sorted based on their absolute values, the task is to sort the linked list based on the actual values.

The absolute value ...read more

Ans.

Sort a Singly Linked List based on actual values instead of absolute values.

  • Traverse the linked list and store the values in an array.

  • Sort the array based on actual values.

  • Update the linked list with the sorted values.

Add your answer
right arrow
Freshworks Software Engineer Interview Questions and Answers for Freshers
illustration image

Q3. Triplets with Given Sum Problem

Given an array or list ARR consisting of N integers, your task is to identify all distinct triplets within the array that sum up to a specified number K.

Explanation:

A triplet i...read more

Ans.

The task is to identify all distinct triplets within an array that sum up to a specified number.

  • Iterate through the array and use nested loops to find all possible triplets.

  • Check if the sum of the triplet equals the specified number.

  • Print the valid triplets or return -1 if no triplet exists.

Add your answer
right arrow

Q4. Intersection of Linked List Problem

You are provided with two singly linked lists containing integers, where both lists converge at some node belonging to a third linked list.

Your task is to determine the data...read more

Ans.

Find the node where two linked lists merge, return -1 if no merging occurs.

  • Traverse both lists to find their lengths and the difference in lengths

  • Move the pointer of the longer list by the difference in lengths

  • Traverse both lists simultaneously until they meet at the merging node

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

Q5. Remove Nodes with Specific Value from Linked List

You are provided with a singly linked list consisting of integer values and an integer 'K'. Your task is to eliminate all nodes from the linked list that have a...read more

Ans.

Remove nodes with specific value from a singly linked list.

  • Traverse the linked list and remove nodes with value equal to 'K'.

  • Update the references of the previous node to skip the removed node.

  • Handle edge cases like removing the head node or multiple nodes with the same value.

  • Return the modified linked list after removal.

Add your answer
right arrow

Q6. Find Duplicates in an Array

Given an array ARR of size 'N', where each integer is in the range from 0 to N - 1, identify all elements that appear more than once.

Return the duplicate elements in any order. If n...read more

Ans.

Find duplicates in an array of integers within a specified range.

  • Iterate through the array and keep track of the count of each element using a hashmap.

  • Identify elements with count greater than 1 as duplicates.

  • Return the duplicate elements as the output.

  • Handle edge cases like empty array or no duplicates found.

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 Freshworks Software Engineer

based on 4 interviews
1 Interview rounds
Coding Test Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

TCS Logo
3.7
 • 289 Interview Questions
Amdocs Logo
3.7
 • 27 Interview Questions
Yodlee Logo
3.8
 • 13 Interview Questions
Phenom Logo
4.0
 • 11 Interview Questions
View all
Recently Viewed
INTERVIEWS
Spark Minda
10 top interview questions
SALARIES
CADFEM India Private Limited
SALARIES
Spark Minda
SALARIES
CADFEM India Private Limited
SALARIES
Spark Minda
INTERVIEWS
Spark Minda
No Interviews
INTERVIEWS
Spark Minda
No Interviews
SALARIES
Spark Minda
SALARIES
Spark Minda
INTERVIEWS
Torrent Gas
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