Quiz on stack and queue,since ask doubt wasn't available there,am asking her

question-4,6,7 doubts,please explain

hey @sattyrajpoot39, please share screenshots of these questions.

https://online.codingblocks.com/player/19830/content/10292/5514/quiz/12
this is the link to qsn, 4,6, and 7

hey @sattyrajpoot39, I don’t have access to this course. Please share me screenshots.

leave it then i’ll help me out anyways then thankyou

hey @sattyrajpoot39, listen friend, it is not gurantee that mine course also have same question as in you cousre. Thatswhy I am asking you for screenshots.

I am sharing you screenshots, please verify whether you have with the same or some others.

Yes sir we have the same question,i didn’t mean to offend you ,I truly apologise if i did

hey @sattyrajpoot39, consider the folllowing

Question 4
As queue is empty initially, condition while loop will be false always. time complexity O(n)

Question 6
refer this https://www.geeksforgeeks.org/gate-gate-cs-2003-question-64/

Question 7
Worst case = queue is sorted in decreasing order. So loop runs 16*16=256 times.

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.