employer cover photo
employer logo
employer logo

Walmart Global Tech

Fait partie de Walmart

Employeur impliqué

Question d’entretien chez Walmart Global Tech

Round 1. Tweaked version of this - https://www.geeksforgeeks.org/problems/bottom-view-of-binary-tree/1 Given a tree, find bottom view - 1 / \ 3 2 / \ / \ 4 5 6 7 Expected output - 4 3 5 6 2 7 (Not 4 3 6 2 7)

Réponse à la question d'entretien

Utilisateur anonyme

25 mars 2025

I have solved using level order traversal and keeping track of the horizontal distance and depth of the tree. Interviewer was satisfied with my code, moved to next round