Minimum Depth of Binary Tree Wrong

Wrong Answer

Input: {1,2,3}
Output: 3
Expected: 2
Minimum_Depth_of_Binary_Tree  Wrong

Need to understand what this question asked. if {1,2} , then why not the
answer is 1 but 2.
Minimum_Depth_of_Binary_Tree  Wrong

Wrong Answer

Input: {1,2,#,3,#,4,#,5}
Output: 2
Expected: 5

Need to understand what question means!!!
Minimum_Depth_of_Binary_Tree Wrong

question meaning!!....find nearest leaf....
Minimum_Depth_of_Binary_Tree  Accepted

consider more!