Filter interviews by
Clear (1)
The question is asking to calculate the number of hops an elevator needs to travel between floors.
Calculate the difference between the starting floor and the destination floor
Divide the difference by the maximum number of floors the elevator can travel in one hop
Round up the result to get the number of hops needed
Transactions in Spring Boot manage database transactions in a declarative way.
Spring Boot uses @Transactional annotation to mark a method as transactional.
Transactions can be managed at class level or method level.
Rollback can be configured based on specific exceptions.
Example: @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
I applied via LinkedIn and was interviewed in Jun 2024. There were 2 interview rounds.
Loop through the linked list to find and remove a specific node
Start at the head of the linked list and iterate through each node
Check if the current node matches the one to be removed
If found, update the pointers to skip over the node and remove it
Continue until the end of the list is reached
Find all triplets in an array of integers without duplicates
Iterate through the array and for each element, find all pairs that sum up to the negative of that element
Use a set to store the seen elements to avoid duplicates
Time complexity can be improved to O(n^2) by sorting the array first
Basic Datastructures and ALgo questions medium to hard level
Iterate through the matrix to find the largest square of 1s
Iterate through each cell in the matrix
For each cell, check if it is part of a square of 1s by checking the cells to the right, below, and diagonally right-down
Keep track of the size of the largest square found
What people are saying about Freshworks
I applied via Approached by Company and was interviewed in Apr 2024. There was 1 interview round.
To find all square matrices in a given matrix, iterate through each cell as the top left corner of a potential square matrix and check if all elements within the square are the same.
Iterate through each cell in the matrix as the top left corner of a potential square matrix
For each cell, check if all elements within the square formed by the cell are the same
If all elements are the same, consider it as a square matrix
Freshworks interview questions for designations
Get interview-ready with Top Freshworks Interview Questions
I applied via Approached by Company and was interviewed in Aug 2022. There were 4 interview rounds.
Implementing hashmap in Java
Create an array of linked lists to store key-value pairs
Hash the key to get the index of the array
Insert the key-value pair at the index in the linked list
Handle collisions by chaining
Implement methods like put(), get(), remove()
Use generics to allow any type of key-value pairs
I was interviewed in Dec 2021.
Round duration - 60 Minutes
Round difficulty - Medium
Two DSA Problems:
Explain anyone Design pattern you used
It was a recruitment drive happened on Saturday
You are provided with two integers, 'N' and 'D'. Your objective is to determine the square root of the number 'N' with a precision up to 'D' decimal pl...
Implement a function to find square root of a number with specified decimal precision.
Implement a function that takes two integers N and D as input and returns the square root of N with precision up to D decimal places.
Ensure that the discrepancy between the computed result and the correct value is less than 10^(-D).
Handle multiple test cases efficiently within the given constraints.
Consider using mathematical algorith...
Given a string input of length 'n', your task is to determine the length of the longest substring that contains no repeating characters.
A substri...
Find the length of the longest substring with unique characters in a given string.
Use a sliding window approach to keep track of the longest substring without repeating characters.
Use a hashmap to store the index of each character in the string.
Update the start index of the window when a repeating character is encountered.
Calculate the maximum length of the window as you iterate through the string.
Return the maximum le
Round duration - 60 Minutes
Round difficulty - Medium
2 Coding questions. Expected to write in 1 hr
You are given a binary tree, and the task is to perform a vertical order traversal of the values of the nodes in the tree.
For a node at position ('X', 'Y'), th...
Perform vertical order traversal of a binary tree based on decreasing 'Y' coordinates.
Implement a function to perform vertical order traversal of a binary tree
Nodes are added in order from top to bottom based on decreasing 'Y' coordinates
Handle cases where two nodes have the same position by adding the node that appears first on the left
Given a number x
and an exponent n
, compute xn
. Accept x
and n
as input from the user, and display the result.
You can assume that 00 = 1
.
Two integers...
Calculate x raised to the power of n, accepting x and n as input and displaying the result.
Accept two integers x and n as input
Compute x^n and display the result
Handle special case 0^0 = 1
Ensure x is between 0 and 8, and n is between 0 and 9
Round duration - 60 Minutes
Round difficulty - Medium
It was a high level round. Checking what are different components and how they interact
Round duration - 60 Minutes
Round difficulty - Easy
This was the managerial round. It was about technical skills evaluation
You are given a string S
and an integer ROW
. Your task is to convert the string into a zig-zag pattern on a given number of rows. After the conversion, output the stri...
Convert a given string into a zig-zag pattern on a specified number of rows and output the result row-wise.
Iterate through the string and place characters in the zig-zag pattern based on the row number
Keep track of the direction of movement (up or down) to determine the row placement
Combine characters from each row to get the final result
The architecture of our current project is a microservices-based system with a combination of RESTful APIs and message queues.
Utilizes microservices architecture for scalability and flexibility
Uses RESTful APIs for communication between services
Incorporates message queues for asynchronous processing
Each microservice is responsible for a specific domain or functionality
Data is stored in a combination of relational and N
Round duration - 60 Minutes
Round difficulty - Easy
Director round
Tip 1 : Medium Level DSA - Trees, Arrays, Strings
Tip 2 : High Level Design - Start with basic system then P1 Requirements
Tip 3 : Practice writing code. Online Coding round will be there
Tip 1 : Keep it small. Only projects, Tech stacks, achievements
Tip 2 : Write those Tech stacks and projects in which you are expert
I applied via Approached by Company and was interviewed before May 2023. There was 1 interview round.
It covers easy to medium programming using basic data structures like hash, stack, linked list etc
Precompilation unit is a compiled code that can be reused by multiple source files.
Precompilation unit is created by the compiler from the source code.
It contains the compiled code of header files and other dependencies.
It can be reused by multiple source files, reducing compilation time.
It is also known as precompiled header or PCH.
Example: stdafx.h in Visual Studio is a precompiled header file.
posted on 15 Feb 2016
The first 50 prime numbers are...
Start with 2, the first prime number
Check each odd number greater than 2
Use trial division to check if a number is prime
Stop when you have found 50 prime numbers
Sorting a file within a range
Use a sorting algorithm like quicksort or mergesort
Read the file and store the data in an array or list
Sort the array or list within the given range
Write the sorted data back to the file
I am a passionate software engineer with experience in developing web applications using various technologies.
Experienced in developing web applications using HTML, CSS, JavaScript, and frameworks like React and Angular
Proficient in backend development with Node.js, Express, and MongoDB
Familiar with version control systems like Git and project management tools like Jira
based on 7 interviews
1 Interview rounds
based on 32 reviews
Rating in categories
Senior Software Engineer
290
salaries
| ₹0 L/yr - ₹0 L/yr |
fresher
263
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
183
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Software Engineer
178
salaries
| ₹0 L/yr - ₹0 L/yr |
Product Specialist
113
salaries
| ₹0 L/yr - ₹0 L/yr |
Zoho
Salesforce
LTIMindtree
TCS