The question was, given a binary tree, and a node, you burn that node at time t = 0. At time t = 1, all the neighbours of the node are burnt too as the fire spreads in all directions (ie burning child and parent of that node). Each burning node will burn all its neighbors in next second. Task: Find total time to burn the tree. I solved it using a hashmap. The connection to children exists via nodes, all you need is a connection to the parent, for which I used a hashmap. PS:- I learnt this from Striver. He has video on this exact same question.
Software Engineer Intern Interview Questions
9,360 software engineer intern interview questions shared by candidates
Questions about binary search, medium level array questions.
Leetcode questions on lists and hash maps.
tell us about your latest project
Leetcode easy question: Valid parenthesis
General Questions like tell me about yourself, and some OOP concept.
A question based on local storage
Can you explain software development?
How did you find Cameo?
What is the difference between java and JavaScript? Explain testing type you know? What are the challenges you face during your university project
Viewing 6521 - 6530 interview questions
See Interview Questions for Similar Jobs
Technology AnalystSoftware EngineerInformation Technology InternComputer InternSoftware InternComputer Science InternProgrammer InternMachine Learning InternIntern SoftwareProgramming InternSoftware DeveloperDeveloper InternComputer Engineer InternData Science InternWeb InternComputer Networking InternSoftware Systems EngineerJava InternForward Deployed Engineer