✅ Cannot implicit convert type
I am working on this LC puzzle https://leetcode.com/problems/binary-tree-level-order-traversal/?envType=study-plan&id=level-1
Here's my progress:
`
I am getting the error Cannot implicitly convert type 'System.Collections.Generic.LinkedList<TreeNode>' to 'System.Collections.Generic.Queue<TreeNode>' (see the ERROR HERE in the code). Could anyone kindly tell me why?
LeetCode
LeetCode - The World's Leading Online Programming Learning Platform
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
2 Replies