Filter interviews by
Node.js uses an event loop to handle asynchronous operations, allowing non-blocking I/O and efficient execution of code.
The event loop is a single-threaded model that manages asynchronous callbacks.
It operates in phases: timers, I/O callbacks, idle, poll, check, and close callbacks.
Example: setTimeout() schedules a callback to be executed after a specified delay.
I/O operations (like reading files) are offloaded to the ...
Event emitter is a mechanism in Node.js that allows communication between objects using events.
Event emitter is a built-in module in Node.js.
It allows objects to emit named events and register listeners for those events.
Listeners are functions that are executed when the event is emitted.
Event emitter is commonly used in Node.js for handling asynchronous operations.
Example: EventEmitter class in Node.js can be used to c...
Top trending discussions
Program to create a copy of a doubly linked list with an arbit pointer.
Traverse the original list and create a new node for each node in the list.
Store the mapping of original node to the new node in a hash table.
Traverse the original list again and set the next and arbit pointers of the new nodes.
Return the head of the new list.
Implement functionality for online test with timer and handle power failure scenarios
Create a timer function to track the time
Store the start time and end time of the test
Implement a backup system to save progress in case of power failure
Use a database to store test data and progress
Handle edge cases like internet connectivity issues
A recursive function to check if a number is prime or not.
Create a function that takes a number as input.
Check if the number is less than 2, return false.
Check if the number is 2, return true.
Check if the number is divisible by any number less than it, return false.
If none of the above conditions are met, call the function recursively with the number minus 1.
To reverse a linked list, we need to traverse the list and change the direction of the pointers.
Create three pointers: prev, curr, and next
Initialize prev to null, curr to head of the linked list, and next to null
Traverse the list and change the direction of the pointers: next = curr.next; curr.next = prev; prev = curr; curr = next;
Set the new head of the linked list to prev
It is not possible to stop man in the middle attack over an insecure communication line without using any kind of encryption.
Without encryption, the communication line is inherently insecure and vulnerable to man-in-the-middle attacks.
One possible solution is to use a secure communication line, such as a VPN or a dedicated private network.
Another solution is to use digital signatures to verify the authenticity of the c...
HTTP is unsecured while HTTPS is secured with SSL/TLS encryption.
HTTP stands for Hypertext Transfer Protocol while HTTPS stands for Hypertext Transfer Protocol Secure.
HTTP operates on port 80 while HTTPS operates on port 443.
HTTP is unencrypted while HTTPS is encrypted with SSL/TLS.
HTTPS provides authentication and data integrity while HTTP does not.
HTTPS is used for secure online transactions such as online banking, e...
Heap and stack memory are two types of memory allocation in a program. Local variables are stored in stack memory. Memory tables are used to track memory allocation.
Heap memory is used for dynamic memory allocation, while stack memory is used for static memory allocation.
Local variables are stored in stack memory and are only accessible within the scope of the function they are declared in.
Memory tables are used to kee...
posted on 7 Sep 2015
I applied via Referral
I applied via Campus Placement
Moderate , easy and basic questions
Debugging problem , language is your choice
posted on 21 Feb 2025
I appeared for an interview before Feb 2024.
I have a strong technical background, a passion for problem-solving, and a proven track record of delivering high-quality software solutions.
Extensive experience in software development, including proficiency in multiple programming languages such as Java, Python, and JavaScript.
Strong problem-solving skills and ability to think critically to find innovative solutions to complex technical challenges.
Proven track record...
I appeared for an interview in Jan 2021.
Round duration - 120 minutes
Round difficulty - Hard
This round was very difficult. I never do these much difficulty level of coding questions. But i give my best, and just do every questions by using step by step process.
Given an integer 'N', print an hourglass pattern based on the value of 'N'.
The first and only line of input contains an integer, denoting the value of N.
Print an hourglass pattern based on the given integer 'N'.
Read the integer 'N' as input
Print the top half of the hourglass pattern with decreasing numbers
Print the bottom half of the hourglass pattern with increasing numbers
Handle the constraints for 'N' values between 1 and 50
Given an undirected and disconnected graph G(V, E) where V vertices are numbered from 0 to V-1, and E represents edges, your task is to output the BFS traversal starting from the ...
BFS traversal in a disconnected graph starting from vertex 0.
Use BFS algorithm to traverse the graph starting from vertex 0.
Explore neighbor nodes first before moving to the next level neighbors.
Consider bidirectional edges in an undirected graph.
Output the BFS traversal sequence for each test case in a separate line.
Ensure the BFS path starts from vertex 0 and print connected nodes in numerical sort order.
You are given a stack. Your task is to sort the elements within the stack in ascending order using only push and pop operations. You are allowed to use one additional stack ...
Sort a given stack in ascending order using only push and pop operations with the help of an additional stack.
Use one additional stack to assist in sorting the elements.
Pop elements from the input stack and push them onto the auxiliary stack in sorted order.
Keep track of the current minimum element to maintain ascending order.
Pop elements from the auxiliary stack back to the input stack to get the sorted order.
Round duration - 90 minutes
Round difficulty - Easy
This round is also coding round in this round we have a small video call interaction too, in which hr ask few questions to only those whose coding question is correct.
You are given a palindrome number represented as a string S
. Your task is to find the largest palindrome number that is strictly less than S
.
T...
Find the largest palindrome number strictly less than a given palindrome number.
Iterate from the middle towards the start of the number and decrement the digits to create the largest palindrome less than the given number.
Handle cases where the number is all '9's by changing the middle digit to '9' and decrementing the rest of the digits.
If the number has an odd length, simply mirror the first half to create the largest...
You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:
Find minimum time to rot all fresh oranges adjacent to rotten oranges in a grid.
Use Breadth First Search (BFS) to simulate the rotting process.
Track the time taken to rot all fresh oranges.
Return -1 if all fresh oranges cannot be rotten.
Handle edge cases like empty grid or no fresh oranges.
Tip 1 : Relax and don't stress. Practice
Tip 2 : Build Resume according to Job Description , but don't lie.
Tip 3 : Have good projects and knowledge regarding important subjects related to interviews
Tip 1 : Include only genuine information, never lie in resume , it will impact to bad impression.
Tip 2 : Skills relevant to Job Description
Tip 3 : Resume should not be more than 2 pages
Tip 4 : Have some projects and internship on your resume because it will give good impression
posted on 29 Jul 2021
Rotate a matrix by 90 degrees clockwise
Transpose the matrix
Reverse each row of the transposed matrix
Alternatively, swap elements in-place layer by layer
Example: [[1,2],[3,4]] -> [[3,1],[4,2]]
posted on 27 Apr 2024
I applied via Campus Placement and was interviewed in Mar 2024. There were 3 interview rounds.
Time distance and basic puzzle questions,6 questions in 45 minutes
Array duplicates and burn binary tree
posted on 30 Oct 2023
C# is a programming language developed by Microsoft for building a wide range of applications on the .NET framework.
C# is an object-oriented language with features like classes, inheritance, and polymorphism.
It is strongly typed, meaning variables must be declared with a specific data type.
C# supports modern programming concepts like async/await for asynchronous programming.
It is commonly used for developing desktop, w...
based on 1 interview experience
Senior Software Engineer
123
salaries
| ₹6.5 L/yr - ₹18.6 L/yr |
Software Engineer
103
salaries
| ₹6 L/yr - ₹13.1 L/yr |
System Analyst
50
salaries
| ₹13.9 L/yr - ₹22 L/yr |
Lead Software Engineer
26
salaries
| ₹15.5 L/yr - ₹31 L/yr |
Senior Test Engineer
17
salaries
| ₹10.5 L/yr - ₹15 L/yr |
Prime Focus Technologies
Subex
Yalamanchili Software Exports
Algonomy