Sdet Intern
Sdet Intern Interview Questions and Answers
Q1. Sort Strings Greatest element in array
Find the greatest element in an array of strings.
Convert the strings to numbers if applicable before comparing.
Use a loop to iterate through the array and keep track of the greatest element.
Handle edge cases like empty array or non-numeric strings.
Q2. Create a olympics logo using React.
Create a Olympics logo using React.
Use SVG elements to create the rings of the logo.
Utilize CSS for styling and positioning of the rings.
Consider using React components to modularize the design.
Implement animations for a dynamic effect.
Ensure responsiveness for different screen sizes.
Sdet Intern Interview Questions and Answers for Freshers
Q3. Border level traversal of tree
Border level traversal of a tree involves visiting the nodes at the outermost edges of the tree in a clockwise or counterclockwise direction.
Start by visiting the nodes in the leftmost column from top to bottom, excluding the leaf nodes.
Then visit the leaf nodes from left to right at the bottom of the tree.
Next, visit the nodes in the rightmost column from bottom to top, excluding the leaf nodes.
Finally, visit the leaf nodes from right to left at the top of the tree.
Q4. Burn a tree coding question
Implement a function to burn a tree starting from a given node
Start by creating a function that takes in the root node of the tree and the node to start burning from
Use a queue to perform a level order traversal of the tree
Keep track of the nodes that have been burned and the nodes that are yet to be burned
Q5. Detect loop in a linkedlist
Use Floyd's Tortoise and Hare algorithm to detect loop in a linked list.
Initialize two pointers, slow and fast, at the head of the linked list.
Move slow pointer by one step and fast pointer by two steps.
If they meet at any point, there is a loop in the linked list.
Interview Questions of Similar Designations
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month