i
Sapiens
Filter interviews by
I applied via campus placement at Centre for Development of Advanced Computing (CDAC) and was interviewed before Jan 2024. There were 4 interview rounds.
Aptitude test including coding question
Basic programs of array,string and theoretical questions of core Java and data structures
Basic questions like reasoning, trains , age, boat and streams, profit and loss basic questions like this
I applied via Company Website and was interviewed in Jun 2021. There were 4 interview rounds.
Shuffle a playlist of songs without repeating any song.
Create a copy of the original playlist
Use a random number generator to select a song from the copy and remove it
Add the selected song to a new shuffled playlist
Repeat until all songs have been selected
Return the shuffled playlist
Reverse a linked list iteratively and recursively.
Iteratively: Traverse the list and change the pointers to reverse the list.
Recursively: Traverse to the end of the list and then change the pointers while returning back.
Create a temporary variable to hold the next node while reversing iteratively.
In recursive approach, handle the base case when the current node is null.
Top trending discussions
posted on 29 Nov 2024
I applied via Naukri.com and was interviewed in Oct 2024. There were 3 interview rounds.
SQL query to retrieve student department id.
Use SELECT statement to retrieve data
Specify the columns to be selected, including the department id column
Specify the table where the student data is stored
Use WHERE clause to filter the results based on student information
Code to find index of sub string in main string and duplicate the sub string
Use a loop to iterate through the main string and check for the sub string
If sub string is found, duplicate it and store the index
Return the index of the duplicated sub string
The first round was a group discussion about online shopping.
I applied via Campus Placement
Question related to operating system and computer network
Traverse all child nodes in a tree data structure
Use depth-first or breadth-first traversal algorithms
Recursively visit each child node starting from the root node
Consider using a stack or queue data structure for traversal
Example: Traverse all nodes in a binary tree
I applied via Walk-in and was interviewed in Nov 2024. There were 5 interview rounds.
Normal online code / frontend test
Designing and building a platform similar to BookMyShow involves creating a user-friendly interface for booking tickets for various events.
Develop a user-friendly website and mobile app for users to browse and book tickets for movies, concerts, plays, etc.
Implement a secure payment gateway for users to make online transactions.
Integrate a database to store information about events, venues, tickets, and user bookings.
In...
To build a tinyurl-like service, design a system with a URL shortening algorithm, a database to store mappings, and a redirect service.
Use a hashing algorithm to generate short URLs from long URLs (e.g. MD5, SHA-256).
Store the mappings of short URLs to long URLs in a database (e.g. MySQL, Redis).
Implement a redirect service that takes a short URL, looks up the corresponding long URL in the database, and redirects the u...
posted on 17 Jan 2025
I was interviewed in Dec 2024.
Mainly 4 Questions
1-2 MCQ
3: Create a class deriving from IReptile and return an object of HatchEgg which has Hatch Method. Hatch Method should return same IReptile object.
4) Sorting IDs in dictionary
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
Use dynamic programming to find the longest palindromic substring in a given string.
Iterate through the string and expand around each character to find palindromes.
Store the length of the longest palindrome found so far.
Return the substring based on the start and end indices of the longest palindrome.
To serialize and deserialize a tree, use a recursive approach to traverse the tree and store the data in a suitable format.
Use pre-order traversal to serialize the tree by storing the node values in a list or string.
For deserialization, reconstruct the tree by recursively building nodes from the serialized data.
Consider using JSON or XML format for serialization to easily store and retrieve tree structure.
Use regex library to match given regex with string.
Use a regex library like re in Python to match the given regex with the string.
Check if the regex matches the string using the library functions.
Handle cases where the regex contains special characters like . and * appropriately.
Throttling is a technique used to control the rate of requests sent to a server.
Throttling helps prevent server overload by limiting the number of requests processed at a time.
Implementing a throttle function involves setting a maximum request rate and delaying excess requests.
Example: Implementing a throttle function in a web application to limit the number of API calls made to a third-party service.
Example: Throttlin...
Sort the squares of elements in a sorted array and return the sorted response.
Iterate through the array and square each element.
Store the squared values in a new array.
Sort the new array and return it.
A promise is a commitment to do something in the future, typically used for asynchronous operations in JavaScript.
Promises are used to handle asynchronous operations in JavaScript.
They represent a value that may be available now, in the future, or never.
Promises have three states: pending, fulfilled, or rejected.
Example: new Promise((resolve, reject) => { setTimeout(() => resolve('Done!'), 1000); });
Event loop is a mechanism that allows for asynchronous execution of code by managing the order of events in a single thread.
Event loop continuously checks the call stack for any functions that need to be executed, and processes them in a non-blocking manner.
Different types of queues in event loop include microtask queue (Promise callbacks), macrotask queue (setTimeout, setInterval callbacks), and animation frame queue
Virtual DOM is a lightweight copy of the actual DOM, used to improve performance by minimizing direct manipulation of the real DOM.
Virtual DOM is a concept used in frameworks like React to optimize rendering performance.
Changes are first made to the virtual DOM, which is then compared to the real DOM to identify the minimal updates needed.
This approach reduces the number of actual DOM manipulations, resulting in faster...
based on 2 interviews
Interview experience
based on 6 reviews
Rating in categories
Software Developer
257
salaries
| ₹5.4 L/yr - ₹18 L/yr |
Quality Analyst
240
salaries
| ₹4.4 L/yr - ₹16.2 L/yr |
Senior Quality Analyst
228
salaries
| ₹6.2 L/yr - ₹20.1 L/yr |
Business Analyst
165
salaries
| ₹6.5 L/yr - ₹23 L/yr |
Developer
153
salaries
| ₹7 L/yr - ₹19 L/yr |
TCS
Infosys
Wipro
HCLTech