emory-courses / dsa-java

Data Structures and Algorithms in Java
https://emory.gitbook.io/dsa-java/
42 stars 55 forks source link

[HW#2] Getting children from a queue #155

Closed lcunild closed 3 years ago

lcunild commented 3 years ago

When I try to remove a TrieNode from a linked list of Trie Nodes, I can print it using System.out.println(queue.remove(0)), but when I try to store the removed node in a new variable, of type Trie Node, then print this, nothing prints. I do not get any errors, however no other lines of code after seem to run. What could be causing this issue?