Skip to content

Commit 90c47cf

Browse files
authored
Update 111. Minimum Depth of Binary Tree.cpp
1 parent 1702f5f commit 90c47cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

111. Minimum Depth of Binary Tree.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Solution {
5353
{
5454
depth++;
5555
width = q.size();
56+
//width is used to clear all nodes in one layer
5657
for ( int i = 0; i < width; i++ )
5758
{
5859
temp = q.front();

0 commit comments

Comments
 (0)