i
Lee & Nee Softwares Exports
Filter interviews by
To check if a directed graph is cyclic or not
Use Depth First Search (DFS) algorithm to traverse the graph
Maintain a visited set to keep track of visited nodes
Maintain a recursion stack to keep track of nodes in the current DFS traversal
If a node is visited and is already in the recursion stack, then the graph is cyclic
If DFS traversal completes without finding a cycle, then the graph is acyclic
Return a random byte from a stream of bytes with equal probability.
Create a variable to store the count of bytes read
Create a variable to store the current random byte
For each byte read, generate a random number between 0 and the count of bytes read
If the random number is 0, store the current byte as the random byte
Return the random byte
Check if a binary tree is a binary search tree or not.
Traverse the tree in-order and check if the values are in ascending order.
For each node, check if its value is greater than the maximum value of its left subtree and less than the minimum value of its right subtree.
Use recursion to check if all nodes in the tree satisfy the above condition.
Algorithm to find Nth-to-Last element in a singly linked list of unknown length
Traverse the list and maintain two pointers, one at the beginning and one at Nth node from beginning
Move both pointers simultaneously until the second pointer reaches the end of the list
The first pointer will be pointing to the Nth-to-Last element
If N=0, return the last element
Parse the list only once
Print all possible permutations of an array of integers
Use recursion to swap elements and generate permutations
Start with the first element and swap it with each subsequent element
Repeat the process for the remaining elements
Stop when all elements have been swapped with the first element
Print each permutation as it is generated
Design a stack that prints the minimum element pushed in O(1)
Use two stacks, one for storing elements and another for storing minimums
When pushing an element, compare it with the top of minimum stack and push the smaller one
When popping an element, pop from both stacks
To get the minimum element, just return the top of minimum stack
To find the starting point of a loop in a linked list, use Floyd's cycle-finding algorithm.
Use two pointers, one moving at twice the speed of the other.
When they meet, move one pointer to the head of the list and keep the other at the meeting point.
Move both pointers one step at a time until they meet again, which is the starting point of the loop.
To find a number in a matrix where all rows and columns are sorted non-decreasingly. Complexity of the solution.
Use binary search to find the number in each row and column
Start from the top-right corner or bottom-left corner to optimize search
Time complexity: O(m log n) or O(n log m) depending on the starting corner
I applied via Referral and was interviewed before Oct 2020. There were 6 interview rounds.
Coalnet Architecture of MMS Module is a system for managing and monitoring coal mines.
Coalnet Architecture is designed to manage and monitor coal mines.
It includes modules for tracking production, equipment maintenance, and safety.
The MMS Module specifically focuses on maintenance management.
It allows for scheduling and tracking of maintenance tasks, as well as inventory management.
The architecture is scalable and can ...
Program to concatenate Zig Zag string from a row using Java String Operations.
Use StringBuilder to efficiently concatenate strings
Use loops to traverse the rows and columns of the zig zag pattern
Use conditional statements to determine the direction of traversal
I applied via Naukri.com and was interviewed in Mar 2020. There were 4 interview rounds.
Web service flow is the sequence of steps involved in the communication between a client and a server over the internet.
Web service flow involves a client sending a request to a server
The server processes the request and sends a response back to the client
The response can be in various formats such as XML, JSON, or plain text
Web service flow can be synchronous or asynchronous
Examples of web services include RESTful API
To check ports in Solaris or Linux machine, use the netstat command.
Open the terminal and type 'netstat -an' to display all open ports.
Use 'netstat -an | grep
To check listening ports, use 'netstat -an | grep LISTEN'.
For Solaris, use 'netstat -an | grep .
Interview questions for Software Developer related to Spring, Collections, Serialization, Exceptions, Unix, Annotations, Json, Build tools, Restful services, and more.
List and Set are both collection interfaces in Java. List allows duplicates and maintains insertion order while Set doesn't allow duplicates and doesn't maintain any order.
Sorted in Hashed Set means that the elements are stored in a sorted order based on ...
Do Arrrays String Questions Well And Solve All The Test Cases
posted on 3 Dec 2024
30min duration simple questions
Basic array 2 coding questions
I applied via Naukri.com and was interviewed before Jan 2022. There were 3 interview rounds.
Digital Marketing Executive
20
salaries
| ₹1.8 L/yr - ₹3.2 L/yr |
Software Developer
16
salaries
| ₹2.4 L/yr - ₹4.8 L/yr |
Web Designer
12
salaries
| ₹2.4 L/yr - ₹4.2 L/yr |
Business Development Manager
10
salaries
| ₹3.6 L/yr - ₹4.8 L/yr |
Digital Marketing Manager
8
salaries
| ₹2.6 L/yr - ₹7 L/yr |
Oracle
KPIT Technologies
Yalamanchili Software Exports
MapmyIndia