whats the reason to not using stack and queue
Url storage prblm
hello @deepakjumani09
stack and queue allows data access only in particular order i.e LIFO in case of stack and FIFO in case of queue.
to check whether a url is there in the datastructure(stack/queue) or not we might need to traverse the complete datastruture due to which our access time will be slow.
thats why stack and queue is not a good option for this problem .
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.