79 questions · from 17 interviews · 9 asked more than once
Freshworks interview questions
Every question candidates reported from their Freshworks interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.
Freshworks coding and DSA questions
- 01
Stock Span I
Given an array of daily stock prices, compute the stock span for each day. The span of the stock’s price on a given day is defined as the maximum number of consecutive days (including the current day) the price of the stock has been less than or equal to its…
Asked 2 times · From Freshworks Senior Software Engineer (Fullstack) Interview Experience – 2026
- 02
Stock Span II
A variant of the Stock Span problem where, in addition to the daily price array, queries may ask for the span of a specific day after the initial computation, or new price values may be added dynamically.
Asked 2 times · From Freshworks Senior Software Engineer (Fullstack) Interview Experience – 2026
- 03
Stock Span III
An extended version of the Stock Span problem that may involve additional constraints such as handling multiple stock symbols simultaneously or computing spans over sliding windows.
Asked 2 times · From Freshworks Senior Software Engineer (Fullstack) Interview Experience – 2026
- 04
Nearest Smaller Element to the Left
Given an array, for each element, find the nearest smaller element to its left. Discuss brute force O(N^2) and stack-based O(N) approaches.
Medium · Asked 2 times · From SSE Interview Exp - Freshworks
- 05
Reverse First K Elements of an Array
Given an array and an integer k, reverse the first k elements of the array.
Easy · Asked 2 times · From SSE Interview Exp - Freshworks
- 06
Minimum Number of Days to Disconnect Island
This was a LeetCode problem about finding the minimum number of days to disconnect an island. We had a thorough discussion on the approach.
Hard · Asked 2 times · From SSE Interview Exp - Freshworks
- 07
Design LRU Cache
Design an LRU (Least Recently Used) cache. The interviewer was very friendly and encouraged the candidate to speak out loud during the solution process. The candidate started with a brute force approach and then optimized it, discussing each part of the…
Medium · Asked 2 times · From FreshWorks SSE Bangalore [Rejected]
- 08
LFU Cache
Implemented an LFU Cache solution. Started with a basic HashMap + Doubly Linked List approach and then optimized it to achieve O(1) operations. Optimized design uses a mapping from key to node and frequency to a doubly linked list. Discussed get/put,…
From Freshworks | Staff Software engineer| Interview Experience
- 09
Product of Array Except Self
Implemented the Product of Array Except Self problem. Initially considered a brute-force O(n²) solution, then optimized using prefix and suffix products to achieve O(n) time and O(n) space.
From Freshworks | Staff Software engineer| Interview Experience
- 10
Flatten a nested array
Implement a function that takes a nested array (e.g., [1, [2, [3, 4]], 5]) and returns a flat array containing all the elements in a single level (e.g., [1, 2, 3, 4, 5]). Discuss how this functionality could be extended by adding a method to Array.prototype.
From Freshworks Senior Software Engineer (Fullstack) Interview Experience – 2026
- 11
Flatten a nested array and extend via Array prototype
Implement a function to flatten a nested array and discuss how to add this functionality to the Array prototype.
From Freshworks Senior Software Engineer (Fullstack) Interview Experience – 2026
- 12
Remove Duplicates from Sorted Array II
Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears at most twice. The relative order of the elements should be kept the same. Since it is impossible to change the length of the…
Medium · From Freshworks | Senior Software Engineer Backend | Reject
- 13
Reverse Linked List II
Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of the list from position left to position right, and return the reversed list.
Medium · From Freshworks | Senior Software Engineer Backend | Reject
- 14
Find Peak Element
A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and return its index. The array may contain multiple peaks, in which case return the index to any one of the peaks. You…
Medium · From Freshworks - Senior Software Engineer - Interview [Offer]
- 15
Search in Rotated Sorted Array
There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k (0 <= k < nums.length) such that the resulting array is [nums[k], nums[k+1], ...,…
Medium · From Freshworks - Senior Software Engineer - Interview [Offer]
- 16
Word Search
Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The same letter cell…
Medium · From Freshworks - Senior Software Engineer - Interview [Offer]
- 17
Meeting Rooms I
Given a list of meeting time intervals [start, end] , determine if a person could attend all meetings. Each meeting is a closed interval [start, end] .
Medium · From Freshworks SSE Interview (Virtual)
- 18
Maximum Subarray Sum
Given an integer array nums , find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Easy · From Freshworks SSE Interview (Virtual)
- 19
Longest Substring Without Repeating Characters
I was asked a DSA question similar to the LeetCode problem Longest Substring Without Repeating Characters.
Medium · From Freshworks Interview Experience | SSE | Chennai & Bang
- 20
Longest Increasing Subsequence
I was given the LeetCode problem Longest Increasing Subsequence.
Medium · From Freshworks Interview Experience | SSE | Chennai & Bang
- 21
Merge Two Sorted Lists
I was given the LeetCode problem Merge Two Sorted Lists.
Easy · From Freshworks Interview Experience | SSE | Chennai & Bang
- 22
Container With Most Water
I was given the LeetCode problem Container With Most Water.
Medium · From Freshworks Interview Experience | SSE | Chennai & Bang
- 23
Simulate a Two-Die Casino Game
Problem Statement: You are working for a casino and need to simulate a two dice game. Write a function that simulates the sum of rolling two six-sided dice, but you are only allowed to use one random function. Constraints: • Use only one call to a uniform…
From Freshworks | Interview (1st Round) | Bengaluru | Data Scientist
- 24
Maximum Minimum Thickness of Slab
Problem Statement: You’re given an m x n matrix, where each cell holds the thickness of a slab. You need to move from the top-left cell (0, 0) to the bottom-right cell (m-1, n-1), moving only right or down. The goal is to maximize the minimum thickness…
From Freshworks | Interview (1st Round) | Bengaluru | Data Scientist
- 25
3 Sum Variant without Maps
A problem similar to 3 Sum, but requiring a solution without the use of hash maps or dictionaries.
12 more in the Freshworks write-ups.
Freshworks system design questions
- 01
URL Scrapping Application Design
Design and implement an application for URL scrapping. A client shares a source-url and depth, and the application needs to return a list of URLs till that depth. The maximum depth can be around 100K. I focused on taking proper Non-Functional Requirements…
Hard · Asked 2 times · From SSE Interview Exp - Freshworks
- 02
Rate Limiting System Design
Design a Rate Limiting system. I had this on my resume, implemented with Redis-Lua.
- 03
Rate Limiting Design
Design a Rate Limiting system. I discussed an implementation using Redis and Lua scripts based on my previous project experience.
Hard · From Interview Experience - Freshworks
- 04
Achieving Stickiness and High Availability
How did you achieve stickiness and high availability in your systems? (e.g., consistent hashing)
- 05
Authentication and Authorization Mechanisms
Explain the fundamental concepts and mechanisms of authentication and authorization in a system.
- 06
HTTP PATCH vs. PUT
Differentiate between HTTP PATCH and PUT methods, including their use cases and idempotency.
- 07
Database Sharding and Consistency Hashing
Explain what sharding is, its utility, and discuss the 'celebrity problem' in the context of sharding. How do you handle changes in the number of servers (e.g., using consistent hashing)?
- 08
Partitioning vs. Sharding
Explain the concept of partitioning and how it differs from sharding in database design.
- 09
Database Indexing
Describe what database indexing is, how it aids in query optimization, and its internal working mechanisms.
- 10
Troubleshooting 504 Gateway Timeout
Discuss potential causes of a 504 Gateway Timeout error, how to diagnose the issue, and common solutions.
- 11
High-Level Design for WhatsApp-like Chat System
Design a high-level architecture for a real-time chat system similar to WhatsApp.
Hard · From Freshworks SSE Interview (Virtual)
- 12
Design a Distributed Web Scraper
Design a web scraper that takes a start URL and a depth n , and returns a list of URLs scrapped up to that level. Discuss handling large depths (e.g., billions of levels), ensuring fault tolerance, and providing status updates to users without email.
Hard · From Freshworks SSE Interview (Virtual)
- 13
Design an LRU Cache
I was asked a common Low-Level Design (LLD) question to design an LRU Cache.
Hard · From Freshworks Interview Experience | SSE | Chennai & Bang
- 14
API for Form Creation
Design an API endpoint that allows administrators to create forms for a government site.
- 15
Dynamic Form Processing API
Design an API and describe methods to dynamically process forms on a government site.
- 16
API to Filter Form Fields
Design an API to filter fields from submitted forms and present the response to administrators.
- 17
Database Schema for Forms
Design database schemas (tables and columns) to store data related to forms, form creation, submission, and dynamic processing for a government site.
- 18
LLD: File Parsing and Storage Service
Design a Low-Level Design (LLD) for a file parsing and storage service. The system should dynamically handle any type of file and store it in different storage services. We were expected to use the Strategy Design Pattern for this.
- 19
- 20
Design a Social Media Platform (e.g., Facebook)
Design a social media platform similar to Facebook. This involved discussing functional and non-functional requirements, database schema design, API creation, and analyzing trade-offs for various architectural approaches.
Hard · From Freshworks Interview Experience - Lead Software Engineer- BackEnd
- 21
Design a Cache System
Design a Cache System. This was discussed during the Bar Raiser round, implying a deep dive into its architecture, algorithms, and trade-offs.
From Freshworks | Lead
- 22
Design RedBus (Search & Seat Booking)
Design a System like RedBus. The discussion was limited to designing Search and Seat Booking functionality. High level design along with API and Database design was discussed. Handling race conditions during seat booking was also discussed.
- 23
Design YouTube Trending Page
Design the trending page of a Video Platform like YouTube.
- 24
Preventing DDoS Attacks
How do you prevent DDoS attack.
- 25
Application Metrics Transmission
How metrices are sent from an application.
Freshworks behavioural and HR questions
- 01
Major Contributions and Project Architecture
Discuss three major contributions from your previous roles and questions related to your current project's architecture, including the usage of AI.
- 02
Code Review Best Practices
Describe your experience with code reviews and how you provide constructive feedback to colleagues.
Freshworks other questions
- 01
Design a tooltip using only HTML/CSS
Create a tooltip component that appears when hovering over an element, using only HTML and CSS (no JavaScript). The tooltip should be positioned appropriately and styled to be readable.
Asked 2 times · From Freshworks Senior Software Engineer (Fullstack) Interview Experience – 2026
- 02
Performance comparison: left:200px vs transform:translateX(200px)
Explain which CSS property—left: 200px or transform: translateX(200px)—is faster for moving an element and why.
From Freshworks Senior Software Engineer (Fullstack) Interview Experience – 2026
- 03
Difference between async and defer in script tags
Describe the difference between the async and defer attributes when loading external JavaScript via the tag.
From Freshworks Senior Software Engineer (Fullstack) Interview Experience – 2026
- 04
Difference between Shadow DOM and Virtual DOM
Explain the differences between Shadow DOM and Virtual DOM, including their purposes and how they operate in the browser.
From Freshworks Senior Software Engineer (Fullstack) Interview Experience – 2026
- 05
Managing Latency to PostgreSQL DB
How did you manage latency when interacting with a PostgreSQL database? (e.g., connection pooling)
- 06
What is a reranker?
What is a reranker?
From Freshworks | Interview (1st Round) | Bengaluru | Data Scientist
- 07
Difference between Bi-Encoder and Cross-Encoder?
Difference between Bi-Encoder and Cross-Encoder?
From Freshworks | Interview (1st Round) | Bengaluru | Data Scientist
- 08
How is BERT different from GPT?
How is BERT different from GPT?
From Freshworks | Interview (1st Round) | Bengaluru | Data Scientist
- 09
What are activation functions used for?
What are activation functions used for?
From Freshworks | Interview (1st Round) | Bengaluru | Data Scientist
- 10
What is regularization and why is it important?
What is regularization and why is it important?
From Freshworks | Interview (1st Round) | Bengaluru | Data Scientist
- 11
Database Design and Querying for a Given Scenario
Given a specific scenario, design the appropriate database schema, discuss the trade-offs of the design choices made, and write the required SQL queries.
From Freshworks Interview Experience - Lead Software Engineer- BackEnd
- 12
Troubleshooting All Endpoint Errors
All request of an end point is giving error. Tell the different stpes you will take to handle it.
- 13
Troubleshooting Intermittent Endpoint Errors
Only some request are erroring out intermittently, How you will identify the root cause.
- 14
Discussion on TLS Layer
Discussion on TLS layer
- 15
Spring Boot Advantages & Annotations
Discussion on Spring boot advantages and internal implementation of some of the spring annotations.
Freshworks interview questions FAQ
What questions are asked in Freshworks interviews?
Candidates reported 79 distinct questions across 17 Freshworks interviews. 37 coding and DSA questions, 25 system design questions, 2 behavioural and HR questions, 15 other questions.
Which Freshworks interview questions are asked most often?
The most repeated are "Stock Span I" (2 times), "Stock Span II" (2 times), "Stock Span III" (2 times), "Design a tooltip using only HTML/CSS" (2 times), "Nearest Smaller Element to the Left" (2 times).
How difficult are Freshworks interview questions?
Of the questions candidates rated, 18% were easy, 54% medium and 29% hard.