# Minimum Number of Operations to Sort a Binary Tree by Level (LeetCode 2674)
## Approach
Per-level cycle-sort swaps.
## Edge cases
Empty level / single node / duplicates.
## Practice tip
State complexity before coding.
Interview prep: [real-time AI interview assistant for live interviews](https://www.linkjob.ai/).