Given a binary tree root and function which prints the value of the node at the (x,y) position in the screen, write a function to print the entire tree in the screen. A lot of edge cases to take care here... 1. The resolution of the screen (its dimensions). 2. Cannot collapse two values at the screen. 3. How do you take care of large numbers on the same vertical line? 4. This was the follow-up question. Maybe it was because I first started with using the same distance for all the children at the same level. The question was to optimize the distance used. For example to use only distance 1 if I didn't need more. Some examples to understand what I talking about. 1 d=1 / \ d = 1 2 3 1 / \ d = 2 / \ 2 5 / \ / \ d = 1 3 4 6 7 You can not use d=1 at the first level because 4 and 6 will collide.
Software Developer New Grad Interview Questions
6,139 software developer new grad interview questions shared by candidates
Copy a linked list Make an iterator
Create a minesweeper board given board dimensions and number of mines where each cell in board has equal chance of containing the mine
Given a binary tree, find the minimum path length from root to leaf.
Given a sorted linked list with 2 nodes swapped, how would you fix it?
Problems that you can find on leetcode on easy and medium :)
Create a tic tac toe game
Maximum depth of an array
Tell us about a challenging situation.
girl i dont remember its been like 2 years
Viewing 2991 - 3000 interview questions
See Interview Questions for Similar Jobs
Software Engineer New GradSoftware Developer InternshipEntry Level Software DeveloperGraduate Software DeveloperSoftware Engineer CcGraduate Software EngineerEntry Level Software Development EngineerSoftware Developer Entry LevelSoftware Engineer DeveloperSoftware Engineer TraineeSoftware Development Engineer New GradEntry Level Software EngineerVelocity Software EngineerSoftware Engineer Entry LevelSoftware Engineering GraduateInternship Software EngineerSoftware Development InternshipSoftware Engineer Graduate