Amazon
Nakoda Ispat Ltd. Power Plant Siltara Phase 2 Interview Questions and Answers
Q1. How can you search a file inside folder levels via command line
To search a file inside folder levels via command line, use the 'find' command.
Open the command prompt or terminal
Navigate to the folder where you want to start the search
Use the 'find' command followed by the name of the file you want to search for
Optionally, you can specify the depth of the search using the '-maxdepth' flag
Example: 'find . -name myfile.txt -maxdepth 2'
Q2. Tell me about a time where you found a bug and how you resolved
Discovered a bug in the software during testing and resolved it by identifying the root cause and implementing a fix.
During testing, found a bug where the application crashed when a specific input was entered.
Investigated the issue by analyzing the code and logs to identify the root cause.
Implemented a fix by updating the code to handle the input correctly and retested to ensure the bug was resolved.
Q3. Trouble shooting steps if speakers of mobile are not working
Check volume settings, restart phone, check for software updates, test with headphones
Check if volume is turned up on the phone
Restart the phone to see if that resolves the issue
Check for any software updates that may fix the problem
Test the speakers with headphones to determine if the issue is with the speakers or the phone
Q4. Check if array is monotonous
Check if array of strings is monotonous
Iterate through the array and compare each string with the next one to check for monotonicity
If all strings are in increasing or decreasing order, the array is monotonous
Examples: ['apple', 'banana', 'cherry'] is monotonous, ['orange', 'kiwi', 'apple'] is not
Q5. Reverse the linked list
Reverse a linked list
Create three pointers: current, prev, and next
Iterate through the linked list, updating pointers accordingly
Set the head of the linked list to the new tail
Q6. Diameter of binary tree
The diameter of a binary tree is the number of nodes on the longest path between two leaves in the tree.
The diameter of a binary tree can be calculated by finding the height of the left subtree, the height of the right subtree, and adding them together.
The diameter may or may not pass through the root of the tree.
Example: For the binary tree below, the diameter is 4 (nodes 1, 2, 4, 7).
1
/ \
2 3
/ \
4 5
/ \
6 7
More about working at Amazon
Interview Process at Nakoda Ispat Ltd. Power Plant Siltara Phase 2
Top Applications Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month