No products in the cart.

Insertion in queue nd deletion ka …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Insertion in queue nd deletion ka logic.....???
  • 2 answers
A bit mistake in words "aage",'piche'........queues me jaha se insert karte hai uske opposite side se nikalte hai..
Dekho queues me piche se daalte hai aage se nikalte hai (galat mat samaj jana)....piche se nikalte hai isi liye jo last node hoga usme previous node ka address hona chahiye (stacks me previous ke paas end ka location hota hai)......to insert karte samay.....newptr->next=end...(node ke next me end ka address dala)...then end=newptr...(node ko end declare kar diya)...........ab delete karte samay....end=end->next....(jo end ka address tha usko ennd declare kar diya which means previous is the new end)......{{for better understanding go through the complete code again now}}
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers
What is mean by buffering in file handling?
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App