L = [node]
do{
nextLevel=[]
while L is not empty:
n = pop(L)
print n.val
if n.left
nextLevel.add(n.left)
if n.right
nextLevel.add(n.right)
L=nextLevel
} while (nextLevel is not empty)
Why is a manhole round?
Il y a 12 ans
This blog provides questions commonly asked at technical interviews for software engineering roles. Solutions are given for most questions. Questions come from different sources but answers are my own.
Aucun commentaire:
Enregistrer un commentaire