Filter interviews by
React Context is a feature in React that allows data to be passed down the component tree without having to pass props manually.
Context provides a way to share values like themes, user data, etc. across the component tree.
It avoids prop drilling, where props are passed down multiple levels to reach a component that needs them.
Context consists of two parts: a Provider component that provides the data and a Consumer comp...
Closure is a function that has access to its parent scope, even after the parent function has closed.
Closure is created when a function is defined inside another function.
The inner function has access to the outer function's variables and parameters.
The outer function returns the inner function, which can be called later with the parent scope still accessible.
Closures are used for data privacy, event handlers, and call
Algorithm to convert roman numeral to numbers
Create a dictionary to map roman numerals to their corresponding values
Iterate through the roman numeral string from right to left
If the current value is less than the previous value, subtract it from the total
If the current value is greater than or equal to the previous value, add it to the total
Return the total
React context is a way to pass data through the component tree without having to pass props down manually at every level.
Context provides a way to share values like a theme or user data across the component tree.
It avoids prop drilling and makes the code cleaner and more maintainable.
Context consists of two parts: a Provider component that provides the data and a Consumer component that consumes the data.
Context can be...
There is no abstract class in JavaScript.
JavaScript does not have a built-in abstract class concept.
However, it is possible to create abstract classes using functions and prototypes.
Abstract classes are used as blueprints for other classes to inherit from.
They cannot be instantiated on their own and must be extended by a subclass.
Abstract methods can be defined in the abstract class and must be implemented in the subcl
Function overloading is when multiple functions have the same name but different parameters. Function overriding is when a subclass provides its own implementation of a method that is already present in the parent class.
Function overloading is used to provide multiple ways to call a function with different parameters.
Function overriding is used to provide a specific implementation of a method in a subclass.
Function ove...
Implement a counter in a React app
Create a state variable to hold the count
Render the count in the UI
Add buttons to increment and decrement the count
Update the state variable on button click
Top trending discussions
Design a web crawler to fetch and index web pages
Start by defining the scope of the crawler (e.g. which websites to crawl)
Implement a system to fetch web pages using HTTP requests
Parse the HTML content to extract relevant information (e.g. links, text)
Store the extracted data in a database or index for later retrieval
Implement a scheduling mechanism to prioritize and manage the crawling process
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Medium
Technical Interview round with questions on DSA.
Structure of an LRU Cache :
1) In practice, LRU cache is a kind of Queue — if an element is reaccessed, it goes to the end of the eviction order
2) This queue will have a specific capacity as the cache has a limited size. Whenever a new element is brought in, it is added at the head of the queue. When eviction happens, it happens from the tail of the queue.
3) Hitting data in the cache must be done in constant time, which...
The idea is to use the sorted arrival and departure times of trains and count the total number of platforms needed at a time . Maintain a counter to count the total number of trains present at the station at any point.
If the train is scheduled to arrive next, increase the counter by one and update the minimum platforms needed if the count is more than the minimum platforms needed so far.
If the train is scheduled ...
Round duration - 45 minutes
Round difficulty - Medium
Technical Interview round with DSA based questions.
The first line of input contains a single int...
This can be solved both: recursively and iteratively.
The recursive approach is more intuitive. First reverse all the nodes after head. Then we need to set head to be the final node in the reversed list. We simply set its next node in the original list (head -> next) to point to it and sets its next to NULL. The recursive approach has a O(N) time complexity and auxiliary space complexity.
For solving the question is c...
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I applied via Approached by Company
Aptitude and coding round, one coding question and others are computer fundamentals
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
General aptitude and out put realted questions
Face to face dsa and string manipulations
posted on 18 Oct 2024
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Java program to convert first letter of each word to upper case
Split the input string into an array of words
Iterate through each word and capitalize the first letter
Join the words back together into a single string
Java program to remove duplicate characters from a string
Create a HashSet to store unique characters
Iterate through the string and add each character to the HashSet
Construct a new string by appending characters from the HashSet
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
Frequency array, java collection, missing number
posted on 17 Jul 2024
I applied via Company Website and was interviewed before Jul 2023. There were 4 interview rounds.
Space and time complexities were asked for program
Software Engineer
1.1k
salaries
| ₹5 L/yr - ₹10.5 L/yr |
System Engineer
468
salaries
| ₹5 L/yr - ₹9.5 L/yr |
Senior Software Engineer
418
salaries
| ₹6.5 L/yr - ₹25.1 L/yr |
Automation Test Engineer
357
salaries
| ₹5.2 L/yr - ₹10 L/yr |
Software Engineer II
301
salaries
| ₹7.5 L/yr - ₹13.3 L/yr |
Siemens
Veradigm
McKesson
Siemens Healthineers