Freshworks interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

Freshworks
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: DSA, computer fundamentals, operating systems, DBMS, Programming basics, Trees, Graphs, DP
Tip
Tip

Tip 1 : Having a prior internship with a dev role will definitely help in interviews.
Tip 2 : If you are not good in frontend then prepare DSA and computer fundamentals very well
Tip 3 : Apart from Leetcode medium questions Have hands on DMBS queries
Tip 4 : Having an API based project will be very helpful for backend roles

Application process
Where: Campus
Eligibility: Only criteria was to solve all the 3 questions of coding test on hackerRank link was sent to all eligible students.
Resume Tip
Resume tip

Tip 1 : They will mostly ask in first round if you interested in frontend or backend roles and then the follow up interviews will happen in that direction.
Tip 2 : so make your resume specific to the role you are interested in. 
Tip 3 : Write what you have worked on in your prior internship. 
Tip 4 : if this is your first internship write your strong points and only things which you are confident in because after selection interviewer will driil you on those topics.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date23 Dec 2021
Coding problem3

three coding questions , no mcq, 1 hr limit

1. Reverse Linked List

Moderate
15m average time
85% success
0/80
Asked in companies
IBMQuikrMicrosoft

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Try solving now

2. Triplets with Given Sum

Moderate
15m average time
85% success
0/80
Asked in companies
IntuitSamsungGrofers

You are given an array/list ARR consisting of N integers. Your task is to find all the distinct triplets present in the array which adds up to a given number K.

An array is said to have a triplet {ARR[i], ARR[j], ARR[k]} with sum = 'K' if there exists three indices i, j and k such that i!=j, j!=k and i!=j and ARR[i] + ARR[j] + ARR[k] = 'K'.

Note:
1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
Problem approach

sort the list in ascending order then find the complement after that do a two pointer approach with a front and rear pointer to find the target value and add the numbers result vector and ensure there are no duplicates by: check if the the number is already in our list, if so move the pointers

Try solving now

3. Intersection of Linked List

Easy
25m average time
73% success
0/40
Asked in companies
Hewlett Packard EnterpriseSamsungIntuit

You are given two Singly Linked Lists of integers, which may have an intersection point.

Your task is to return the first intersection node. If there is no intersection, return NULL.


Example:-
The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

alt.txt

Try solving now
02
Round
Medium
Video Call
Duration45 Minutes
Interview date28 Dec 2020
Coding problem2

1st they asked area of interest like frontend or backend. I said backend 
Then thy asked a array based question followed by a linked list. 
Then he asked some computer fundametals.

1. Find Duplicates In Array

Easy
15m average time
90% success
0/40
Asked in companies
LinkedInBNY MellonFreshworks

You are given an array/list 'ARR' consisting of N integers, which contains elements only in the range 0 to N - 1. Some of the elements may be repeated in 'ARR'. Your task is to find all such duplicate elements.

Note:
1. All the elements are in the range 0 to N - 1.
2. The elements may not be in sorted order.
3. You can return the duplicate elements in any order.
4. If there are no duplicates present then return an empty array.
Problem approach

If the number is visited it is turned negative
If the visited number is negative that means it has been already visited(duplicate) and hence added to the list.
Since the array values are from 1 to n therefore the 1 is subtracted from the array values at the time of indexing.

Try solving now

2. Remove All Nodes with Value K

Easy
10m average time
90% success
0/40
Asked in companies
Dream11FreshworksApple

You are given a Singly Linked List of integers and an integer 'K'. Your task is to remove all such nodes from the linked list whose value is equal to 'K'.

A singly linked list is a linear data structure in which we can traverse only in one direction i.e., from Head to Tail. It consists of several nodes where each node contains some data and a reference to the next node.

A sample Linked List-

singly_linkedlist

Problem approach

basic idea is to have two pointers, one for previous node and one for current, if current node.val == val
we want to set our previous.next to current.next.

Try solving now
03
Round
Medium
Face to Face
Duration60 Minutes
Interview date2 Jan 2021
Coding problem1

mainly focused on dsa , dbms and working of an API

1. Sort Linked List

Easy
15m average time
85% success
0/40
Asked in companies
AdobePayPalFreshworks

You are given a Singly Linked List of integers which is sorted based on absolute value.

You have to sort the Linked List based on actual values.

The absolute value of a real number x, denoted |x|, is the non-negative value of x without regard to its sign.

Example:
If the given list is {1 -> -2 -> 3} (which is sorted on absolute value), the returned list should be {-2 -> 1 -> 3}.
Problem approach

Use 2 pointers: fast and slow to divide the list into 2 sublist: list1 and list2 and make sure list1 is equal to or is longer than list2.
The key is the condition of while loop while(fast.next!=null && fast.next.next!=null). After this while loop slow will be at the position of the end of list1.
sort list1 and list2
merge list1 and list2

Try solving now
04
Round
Easy
Video Call
Duration30 Minutes
Interview date5 Jan 2021
Coding problem0

this was a hr round who asked about personal experiences , expectations, and behavioural questions.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
SDE - 1
5 rounds | 6 problems
Interviewed by Freshworks
1081 views
0 comments
0 upvotes
Senior Software Engineer
5 rounds | 7 problems
Interviewed by Freshworks
1510 views
0 comments
0 upvotes
SDE - 1
4 rounds | 8 problems
Interviewed by Freshworks
1134 views
0 comments
0 upvotes
Software Engineer
3 rounds | 4 problems
Interviewed by Freshworks
0 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7874 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
9973 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4310 views
1 comments
0 upvotes