i
Magnit Global
Filter interviews by
I applied via Company Website and was interviewed in Apr 2023. There were 3 interview rounds.
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...
posted on 11 Aug 2024
I applied via LinkedIn and was interviewed in Jul 2024. There were 3 interview rounds.
SOLID principles help in creating maintainable, scalable, and flexible software.
SOLID principles help in creating software that is easier to maintain and extend.
Single Responsibility Principle (SRP) ensures that a class has only one reason to change, leading to more modular and cohesive code.
Open/Closed Principle (OCP) states that a class should be open for extension but closed for modification, allowing for easy chang...
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Create a private static instance of the class within the class itself.
Provide a public static method to access the instance.
Ensure the constructor of the class is private to prevent instantiation from outside the class.
Example: Singleton pattern is commonly used in database connections to ensure only one connectio
Dependency injection is a design pattern where components are provided with their dependencies rather than creating them internally.
Dependency injection helps in achieving loose coupling between components.
It makes components easier to test by allowing for easier mocking of dependencies.
Use cases include injecting database connections, logging services, and external API clients into components.
Debugging a published dll involves using tools like Visual Studio debugger and logging mechanisms.
Use Visual Studio debugger to attach to the process using the published dll
Set breakpoints in the code to pause execution and inspect variables
Use logging mechanisms to track the flow of execution and identify issues
Check for any exceptions or errors thrown by the dll
Data seeding in Entity Framework involves pre-populating database tables with initial data. Mapping tables with entities involves defining relationships between database tables and entity classes.
Data seeding in Entity Framework can be done using the 'Seed' method in the 'Configuration' class of the DbContext.
To map tables with entities, use data annotations or Fluent API to define relationships between entities and da...
posted on 17 Nov 2024
Reverse a string to check if it is a palindrome.
Create a function that takes a string as input
Reverse the string using built-in functions or manually
Compare the reversed string with the original string to check if it is a palindrome
Design a zepto delivery system for efficient and fast delivery of small packages.
Utilize drones for quick and efficient delivery
Implement a centralized hub for package sorting and distribution
Use GPS tracking for real-time package monitoring
Optimize routes for faster delivery times
Ensure secure and reliable delivery process
I applied via Approached by Company and was interviewed in Aug 2024. There was 1 interview round.
Pure pipes do not have any side effects and always return the same output for the same input, while impure pipes can have side effects and may not return the same output for the same input.
Pure pipes are stateless and deterministic.
Impure pipes can have side effects like modifying global variables or making network requests.
Examples of pure pipes include filters in Angular, while examples of impure pipes include async
Writing trigger logic involves defining actions to be taken when a certain event occurs in a database.
Identify the event that will trigger the logic
Define the actions to be taken when the event occurs
Consider any conditions or constraints that need to be met for the trigger to fire
A Batch Class is used in Salesforce to process records in batches.
Batch classes are used to process large amounts of data in Salesforce.
They are implemented by implementing the Database.Batchable interface.
Batch classes have three main methods: start, execute, and finish.
Example: public class MyBatchClass implements Database.Batchable
LWC Component for Senior Software Engineer interview
Create a new Lightning Web Component using Salesforce CLI
Define HTML template, JavaScript controller, and CSS styling
Implement functionality using Apex controllers and Lightning Data Service
Use @wire to fetch data from Salesforce backend
Leverage Salesforce Lightning Design System for UI components
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.
based on 1 review
Rating in categories
Staff Accountant
9
salaries
| ₹3.6 L/yr - ₹6 L/yr |
Senior Accountant
9
salaries
| ₹6.4 L/yr - ₹8.5 L/yr |
Financial Analyst
8
salaries
| ₹3 L/yr - ₹7.2 L/yr |
Operations Specialist
8
salaries
| ₹3.3 L/yr - ₹5.2 L/yr |
Senior Software Engineer
8
salaries
| ₹14 L/yr - ₹31 L/yr |
Reliance Industries
Tata Group
Aditya Birla Group
Hindustan Unilever