data-structures
data-structures copied to clipboard
changed in deque if condition
can you check this as if deque 11 times in previous code(if queue has 10 elements) o/p return 0 as you compare front with queue size