Filter interviews by
I applied via Referral and was interviewed in Mar 2024. There was 1 interview round.
Structure is a user-defined data type that groups related data members, while class is a blueprint for creating objects with data members and member functions.
Structure is a value type, while class is a reference type
Structure members are public by default, while class members are private by default
Structure does not support inheritance, while class supports inheritance
Example: struct Person { string name; int age; };
Pass by value involves passing a copy of the actual value, while pass by reference involves passing a reference to the actual value.
Pass by value: actual value is copied and changes made to the copy do not affect the original value
Pass by reference: reference to the actual value is passed, changes made to the reference affect the original value
Example: Pass by value - int x = 10; func(x); // x remains 10 after func cal...
Real time case studies and puzzles
Top trending discussions
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...
DSA round leetcode style question
I was interviewed in Jul 2024.
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
I have over 8 years of experience in software development, specializing in backend systems and database management.
Developed scalable backend systems using Java and Spring framework
Designed and optimized database schemas for performance
Led a team of developers in implementing new features and resolving technical issues
Worked on integrating third-party APIs for enhanced functionality
Difficulties faced include complex technical challenges, tight deadlines, and communication issues.
Complex technical challenges such as optimizing performance of a large-scale system
Tight deadlines requiring quick turnaround on projects
Communication issues with team members or stakeholders leading to misunderstandings
Check if a string is a palindrome
Iterate through each string in the array
For each string, compare characters from start and end to check if it's a palindrome
Return true if all strings are palindromes, false otherwise
Various automation frameworks like keyword-driven, data-driven, hybrid, and behavior-driven are commonly used in software testing.
Keyword-driven framework: Tests are written using keywords and actions.
Data-driven framework: Tests are driven by data sets.
Hybrid framework: Combination of multiple frameworks.
Behavior-driven framework: Focuses on behavior of the system.
Page Object Model (POM): Organizes code by separating
posted on 29 Aug 2024
I applied via LinkedIn and was interviewed in Jul 2024. There was 1 interview round.
I applied via Company Website
A code to identify errors and write Junit. Optimise the code as well.
Implementing a stack using two queues
Use two queues to simulate a stack
Push operation: Enqueue the element to queue 1
Pop operation: Dequeue all elements from queue 1 to queue 2, dequeue the last element from queue 1, then swap the queues
Top operation: Return the front element of queue 1
Example: Push 1, 2, 3 - Queue 1: [1, 2, 3], Queue 2: []
Example: Pop - Queue 1: [1, 2], Queue 2: [3]
based on 2 interviews
Interview experience
based on 20 reviews
Rating in categories
Software Engineer
378
salaries
| ₹6.4 L/yr - ₹18.5 L/yr |
Senior Software Engineer
251
salaries
| ₹8 L/yr - ₹32.5 L/yr |
Software Developer
176
salaries
| ₹5.5 L/yr - ₹19.5 L/yr |
Software Engineer III
156
salaries
| ₹12.1 L/yr - ₹34 L/yr |
Software Engineer2
156
salaries
| ₹10 L/yr - ₹21 L/yr |
TCS
Infosys
Wipro
HCLTech