mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-09-23 15:34:20 +00:00
[PR #1392] [CLOSED] Implemented Level order traversal #1991
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/1392
Author: @di-was
Created: 5/10/2024
Status: ❌ Closed
Base:
master← Head:levelorder_traversal📝 Commits (1)
849792bLevel order traversal added📊 Changes
1 file changed (+51 additions, -0 deletions)
View changed files
➕
data_structures/binary_trees/level_order_traversal.c(+51 -0)📄 Description
Description of Change
Added a detailed implementation of level order traversal, also known as Breadth-First Search (BFS), for a binary tree. The provided code systematically traverses every node in the tree, visiting all nodes at a particular level before moving to the next level. It starts from the root node and explores all of its neighbors at the present depth level before moving to the nodes at the next level.
Checklist
Notes: BFS
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.