Open muety opened 4 years ago
What do you think about a Get(index int)-like method to get an arbitrary element from a queue in O(n) by iterating the linked list?
Get(index int)
O(n)
What do you think about a
Get(index int)
-like method to get an arbitrary element from a queue inO(n)
by iterating the linked list?