Filter interviews by
Debounce function delays the execution of a function until after a specified amount of time has passed since the last time it was invoked.
Create a function that takes a function and a delay time as parameters
Use setTimeout to delay the execution of the function
Use clearTimeout to reset the timer if the function is invoked again within the delay time
To find the Kth largest number in a Binary Search Tree (BST), we can perform an in-order traversal and keep track of the Kth largest element.
Perform an in-order traversal of the BST to get the elements in non-decreasing order.
Keep track of the Kth largest element while traversing the BST.
Return the Kth largest element once found.
Count pairs in an array whose sum is a perfect square.
Iterate through the array and calculate the sum of each pair.
Check if the sum is a perfect square using a function.
Increment a counter if the sum is a perfect square.
Return the final count of pairs.
The immediate higher number to the right of each element in an array
Iterate through the array from right to left
For each element, compare it with the elements to its right to find the immediate higher number
Store the immediate higher number in a new array
Design a Tiny URL service to shorten URLs and manage redirection efficiently.
Generate a unique identifier for each URL (e.g., base62 encoding).
Store the mapping of short URL to original URL in a database.
Implement a redirection service that retrieves the original URL using the identifier.
Consider using caching for frequently accessed URLs to improve performance.
Implement analytics to track usage of shortened URLs ...
A tiny URL application is built by generating short aliases for long URLs, storing them in a database, and redirecting users to the original URL when the alias is accessed.
Generate a unique short alias for each long URL
Store the alias and corresponding long URL in a database
Implement a redirect mechanism to redirect users from the alias to the original URL
Handle edge cases like duplicate URLs, expired aliases, and...
You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or two...
The problem involves counting the number of distinct ways to climb N stairs by taking 1 or 2 steps at a time.
Use dynamic programming to solve this problem efficiently.
The number of ways to reach the Nth stair is equal to the sum of ways to reach (N-1)th stair and (N-2)th stair.
Handle modulo 10^9+7 to avoid overflow issues.
Consider base cases for 0th and 1st stair.
Optimize the solution by using constant space inste...
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
.
A tr...
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.
Keep track of the sum of each triplet and compare it with the target sum.
Print the triplet if the sum matches the target sum, else print -1.
Designing the Low-Level Design (LLD) and High-Level Design (HLD) for a system like BookMyShow.
For HLD, identify main components like user interface, booking system, payment gateway, and database.
For LLD, break down each component into detailed modules and their interactions.
Consider scalability, security, and performance in both designs.
Example: HLD - User selects movie -> Booking system checks availability -&g...
Designing a database schema for a support ticketing system like Freshdesk.
Create a 'Tickets' table with fields like ticket ID, subject, description, status, priority, etc.
Include a 'Users' table for customer and agent information.
Establish a 'Categories' table for ticket categorization.
Implement a 'Comments' table to track communication history.
Utilize foreign keys to establish relationships between tables.
Basic DS question like dutch flag problem.
Debounce function delays the execution of a function until after a specified amount of time has passed since the last time it was invoked.
Create a function that takes a function and a delay time as parameters
Use setTimeout to delay the execution of the function
Use clearTimeout to reset the timer if the function is invoked again within the delay time
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
Two questions asked:
1. Partition equal sum
2. find length largest region boolean matrix
The immediate higher number to the right of each element in an array
Iterate through the array from right to left
For each element, compare it with the elements to its right to find the immediate higher number
Store the immediate higher number in a new array
Count pairs in an array whose sum is a perfect square.
Iterate through the array and calculate the sum of each pair.
Check if the sum is a perfect square using a function.
Increment a counter if the sum is a perfect square.
Return the final count of pairs.
Design a parking lot system to manage parking spaces, vehicles, and payment processing.
Define classes: ParkingLot, ParkingSpace, Vehicle, and Payment.
ParkingLot should manage multiple ParkingSpaces and track available spots.
ParkingSpace can be of different types: Compact, Regular, and Handicapped.
Vehicle class can include attributes like license plate, size, and type.
Implement methods for parking, retrieving vehicles, ...
To find the Kth largest number in a Binary Search Tree (BST), we can perform an in-order traversal and keep track of the Kth largest element.
Perform an in-order traversal of the BST to get the elements in non-decreasing order.
Keep track of the Kth largest element while traversing the BST.
Return the Kth largest element once found.
I appeared for an interview in Oct 2024, where I was asked the following questions.
I applied via LinkedIn and was interviewed in Aug 2023. There was 1 interview round.
Design a Tiny URL service to shorten URLs and manage redirection efficiently.
Generate a unique identifier for each URL (e.g., base62 encoding).
Store the mapping of short URL to original URL in a database.
Implement a redirection service that retrieves the original URL using the identifier.
Consider using caching for frequently accessed URLs to improve performance.
Implement analytics to track usage of shortened URLs (e.g....
I applied via Approached by Company and was interviewed before Dec 2023. There were 3 interview rounds.
DSA medium level questions
I applied via Naukri.com and was interviewed before Aug 2023. There was 1 interview round.
Basic DSA leet code.
I appeared for an interview before Sep 2023.
Hacker rank evaluation with three questions
I applied via Referral and was interviewed before Jun 2022. There were 6 interview rounds.
I applied via Approached by Company and was interviewed before Jan 2023. There were 2 interview rounds.
Write a program that solves sudoku
A tiny URL application is built by generating short aliases for long URLs, storing them in a database, and redirecting users to the original URL when the alias is accessed.
Generate a unique short alias for each long URL
Store the alias and corresponding long URL in a database
Implement a redirect mechanism to redirect users from the alias to the original URL
Handle edge cases like duplicate URLs, expired aliases, and inva...
Top trending discussions
The duration of Freshworks Senior Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 12 interview experiences
Difficulty level
Duration
based on 45 reviews
Rating in categories
Senior Software Engineer
376
salaries
| ₹19.8 L/yr - ₹36 L/yr |
fresher
247
salaries
| ₹1.8 L/yr - ₹5.1 L/yr |
Software Engineer
236
salaries
| ₹10 L/yr - ₹17 L/yr |
Lead Software Engineer
225
salaries
| ₹30.1 L/yr - ₹53 L/yr |
Product Specialist
146
salaries
| ₹3.5 L/yr - ₹11.5 L/yr |
Zoho
Salesforce
Thomson Reuters
Oracle Cerner