SlideShare a Scribd company logo
Implement in Java the Queue abstract data type using a singly-linked list with only one access
pointer (instead of two: Q.head and Q.tail). ENQUEUE and DEQUEUE operations should take
constant time. Assume elements are integers. Briefly describe your implementation in the report.
Clear solution with step by step and explaining it please.

More Related Content

More from aarzoomobile

Method used to authenticate an electronic entry Confirms the content a.pdf
Method used to authenticate an electronic entry Confirms the content a.pdfMethod used to authenticate an electronic entry Confirms the content a.pdf
Method used to authenticate an electronic entry Confirms the content a.pdf
aarzoomobile
 
In sports- the global COVID-19 pandemic that began in 2020 is an examp.pdf
In sports- the global COVID-19 pandemic that began in 2020 is an examp.pdfIn sports- the global COVID-19 pandemic that began in 2020 is an examp.pdf
In sports- the global COVID-19 pandemic that began in 2020 is an examp.pdf
aarzoomobile
 
In a city in Australia there is a population of moths that live in the.pdf
In a city in Australia there is a population of moths that live in the.pdfIn a city in Australia there is a population of moths that live in the.pdf
In a city in Australia there is a population of moths that live in the.pdf
aarzoomobile
 
Inventory information for Part 311 of Splish Corp- discloses the follo.pdf
Inventory information for Part 311 of Splish Corp- discloses the follo.pdfInventory information for Part 311 of Splish Corp- discloses the follo.pdf
Inventory information for Part 311 of Splish Corp- discloses the follo.pdf
aarzoomobile
 
Create a system with GUi to support the food ordering process for a re.pdf
Create a system with GUi to support the food ordering process for a re.pdfCreate a system with GUi to support the food ordering process for a re.pdf
Create a system with GUi to support the food ordering process for a re.pdf
aarzoomobile
 
Consider the Swiss cheese model- Then- identify an example of an error.pdf
Consider the Swiss cheese model- Then- identify an example of an error.pdfConsider the Swiss cheese model- Then- identify an example of an error.pdf
Consider the Swiss cheese model- Then- identify an example of an error.pdf
aarzoomobile
 
Find the variance for the given data- Round your answer to one more de.pdf
Find the variance for the given data- Round your answer to one more de.pdfFind the variance for the given data- Round your answer to one more de.pdf
Find the variance for the given data- Round your answer to one more de.pdf
aarzoomobile
 
During breathing- trace the pathway for oxygen from atmospheric air- s.pdf
During breathing- trace the pathway for oxygen from atmospheric air- s.pdfDuring breathing- trace the pathway for oxygen from atmospheric air- s.pdf
During breathing- trace the pathway for oxygen from atmospheric air- s.pdf
aarzoomobile
 
Figure 6 - 1 - Classification Of Income Income While Held Income At Di (1).pdf
Figure 6 - 1 - Classification Of Income Income While Held Income At Di (1).pdfFigure 6 - 1 - Classification Of Income Income While Held Income At Di (1).pdf
Figure 6 - 1 - Classification Of Income Income While Held Income At Di (1).pdf
aarzoomobile
 
A school-age child who has Down syndrome has poor lip closure resultin.pdf
A school-age child who has Down syndrome has poor lip closure resultin.pdfA school-age child who has Down syndrome has poor lip closure resultin.pdf
A school-age child who has Down syndrome has poor lip closure resultin.pdf
aarzoomobile
 
A number of unrelated transactions recorded by Abba Company are as fol.pdf
A number of unrelated transactions recorded by Abba Company are as fol.pdfA number of unrelated transactions recorded by Abba Company are as fol.pdf
A number of unrelated transactions recorded by Abba Company are as fol.pdf
aarzoomobile
 
A firm issues preferred stock with a dividend of $3-91- If the appropr.pdf
A firm issues preferred stock with a dividend of $3-91- If the appropr.pdfA firm issues preferred stock with a dividend of $3-91- If the appropr.pdf
A firm issues preferred stock with a dividend of $3-91- If the appropr.pdf
aarzoomobile
 
1- Understanding the implications of taxes on welfare The following ar.pdf
1- Understanding the implications of taxes on welfare The following ar.pdf1- Understanding the implications of taxes on welfare The following ar.pdf
1- Understanding the implications of taxes on welfare The following ar.pdf
aarzoomobile
 
Y is known to be inversely proportional to X- where X and Y are positi.pdf
Y is known to be inversely proportional to X- where X and Y are positi.pdfY is known to be inversely proportional to X- where X and Y are positi.pdf
Y is known to be inversely proportional to X- where X and Y are positi.pdf
aarzoomobile
 
Which statement best explains why the debt-to-GDP ratio is important-.pdf
Which statement best explains why the debt-to-GDP ratio is important-.pdfWhich statement best explains why the debt-to-GDP ratio is important-.pdf
Which statement best explains why the debt-to-GDP ratio is important-.pdf
aarzoomobile
 
Which of the following is TRUE of material entering the coll through a.pdf
Which of the following is TRUE of material entering the coll through a.pdfWhich of the following is TRUE of material entering the coll through a.pdf
Which of the following is TRUE of material entering the coll through a.pdf
aarzoomobile
 
What is the role of the index sequence in the version of Illumina sequ.pdf
What is the role of the index sequence in the version of Illumina sequ.pdfWhat is the role of the index sequence in the version of Illumina sequ.pdf
What is the role of the index sequence in the version of Illumina sequ.pdf
aarzoomobile
 
Where do Ca2+ ions come from in skeletal muscle to initiate contractio.pdf
Where do Ca2+ ions come from in skeletal muscle to initiate contractio.pdfWhere do Ca2+ ions come from in skeletal muscle to initiate contractio.pdf
Where do Ca2+ ions come from in skeletal muscle to initiate contractio.pdf
aarzoomobile
 
Water loss- Human skin loses water through evaporation- and- in- gener.pdf
Water loss- Human skin loses water through evaporation- and- in- gener.pdfWater loss- Human skin loses water through evaporation- and- in- gener.pdf
Water loss- Human skin loses water through evaporation- and- in- gener.pdf
aarzoomobile
 
What domain do protists belong to- Multiple Choice Archaea Eukarya Bac.pdf
What domain do protists belong to- Multiple Choice Archaea Eukarya Bac.pdfWhat domain do protists belong to- Multiple Choice Archaea Eukarya Bac.pdf
What domain do protists belong to- Multiple Choice Archaea Eukarya Bac.pdf
aarzoomobile
 

More from aarzoomobile (20)

Method used to authenticate an electronic entry Confirms the content a.pdf
Method used to authenticate an electronic entry Confirms the content a.pdfMethod used to authenticate an electronic entry Confirms the content a.pdf
Method used to authenticate an electronic entry Confirms the content a.pdf
 
In sports- the global COVID-19 pandemic that began in 2020 is an examp.pdf
In sports- the global COVID-19 pandemic that began in 2020 is an examp.pdfIn sports- the global COVID-19 pandemic that began in 2020 is an examp.pdf
In sports- the global COVID-19 pandemic that began in 2020 is an examp.pdf
 
In a city in Australia there is a population of moths that live in the.pdf
In a city in Australia there is a population of moths that live in the.pdfIn a city in Australia there is a population of moths that live in the.pdf
In a city in Australia there is a population of moths that live in the.pdf
 
Inventory information for Part 311 of Splish Corp- discloses the follo.pdf
Inventory information for Part 311 of Splish Corp- discloses the follo.pdfInventory information for Part 311 of Splish Corp- discloses the follo.pdf
Inventory information for Part 311 of Splish Corp- discloses the follo.pdf
 
Create a system with GUi to support the food ordering process for a re.pdf
Create a system with GUi to support the food ordering process for a re.pdfCreate a system with GUi to support the food ordering process for a re.pdf
Create a system with GUi to support the food ordering process for a re.pdf
 
Consider the Swiss cheese model- Then- identify an example of an error.pdf
Consider the Swiss cheese model- Then- identify an example of an error.pdfConsider the Swiss cheese model- Then- identify an example of an error.pdf
Consider the Swiss cheese model- Then- identify an example of an error.pdf
 
Find the variance for the given data- Round your answer to one more de.pdf
Find the variance for the given data- Round your answer to one more de.pdfFind the variance for the given data- Round your answer to one more de.pdf
Find the variance for the given data- Round your answer to one more de.pdf
 
During breathing- trace the pathway for oxygen from atmospheric air- s.pdf
During breathing- trace the pathway for oxygen from atmospheric air- s.pdfDuring breathing- trace the pathway for oxygen from atmospheric air- s.pdf
During breathing- trace the pathway for oxygen from atmospheric air- s.pdf
 
Figure 6 - 1 - Classification Of Income Income While Held Income At Di (1).pdf
Figure 6 - 1 - Classification Of Income Income While Held Income At Di (1).pdfFigure 6 - 1 - Classification Of Income Income While Held Income At Di (1).pdf
Figure 6 - 1 - Classification Of Income Income While Held Income At Di (1).pdf
 
A school-age child who has Down syndrome has poor lip closure resultin.pdf
A school-age child who has Down syndrome has poor lip closure resultin.pdfA school-age child who has Down syndrome has poor lip closure resultin.pdf
A school-age child who has Down syndrome has poor lip closure resultin.pdf
 
A number of unrelated transactions recorded by Abba Company are as fol.pdf
A number of unrelated transactions recorded by Abba Company are as fol.pdfA number of unrelated transactions recorded by Abba Company are as fol.pdf
A number of unrelated transactions recorded by Abba Company are as fol.pdf
 
A firm issues preferred stock with a dividend of $3-91- If the appropr.pdf
A firm issues preferred stock with a dividend of $3-91- If the appropr.pdfA firm issues preferred stock with a dividend of $3-91- If the appropr.pdf
A firm issues preferred stock with a dividend of $3-91- If the appropr.pdf
 
1- Understanding the implications of taxes on welfare The following ar.pdf
1- Understanding the implications of taxes on welfare The following ar.pdf1- Understanding the implications of taxes on welfare The following ar.pdf
1- Understanding the implications of taxes on welfare The following ar.pdf
 
Y is known to be inversely proportional to X- where X and Y are positi.pdf
Y is known to be inversely proportional to X- where X and Y are positi.pdfY is known to be inversely proportional to X- where X and Y are positi.pdf
Y is known to be inversely proportional to X- where X and Y are positi.pdf
 
Which statement best explains why the debt-to-GDP ratio is important-.pdf
Which statement best explains why the debt-to-GDP ratio is important-.pdfWhich statement best explains why the debt-to-GDP ratio is important-.pdf
Which statement best explains why the debt-to-GDP ratio is important-.pdf
 
Which of the following is TRUE of material entering the coll through a.pdf
Which of the following is TRUE of material entering the coll through a.pdfWhich of the following is TRUE of material entering the coll through a.pdf
Which of the following is TRUE of material entering the coll through a.pdf
 
What is the role of the index sequence in the version of Illumina sequ.pdf
What is the role of the index sequence in the version of Illumina sequ.pdfWhat is the role of the index sequence in the version of Illumina sequ.pdf
What is the role of the index sequence in the version of Illumina sequ.pdf
 
Where do Ca2+ ions come from in skeletal muscle to initiate contractio.pdf
Where do Ca2+ ions come from in skeletal muscle to initiate contractio.pdfWhere do Ca2+ ions come from in skeletal muscle to initiate contractio.pdf
Where do Ca2+ ions come from in skeletal muscle to initiate contractio.pdf
 
Water loss- Human skin loses water through evaporation- and- in- gener.pdf
Water loss- Human skin loses water through evaporation- and- in- gener.pdfWater loss- Human skin loses water through evaporation- and- in- gener.pdf
Water loss- Human skin loses water through evaporation- and- in- gener.pdf
 
What domain do protists belong to- Multiple Choice Archaea Eukarya Bac.pdf
What domain do protists belong to- Multiple Choice Archaea Eukarya Bac.pdfWhat domain do protists belong to- Multiple Choice Archaea Eukarya Bac.pdf
What domain do protists belong to- Multiple Choice Archaea Eukarya Bac.pdf
 

Recently uploaded

مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
ImMuslim
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
Payaamvohra1
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
Mohammad Al-Dhahabi
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
IsmaelVazquez38
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 

Recently uploaded (20)

مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 

Implement in Java the Queue abstract data type using a singly-linked l.pdf

  • 1. Implement in Java the Queue abstract data type using a singly-linked list with only one access pointer (instead of two: Q.head and Q.tail). ENQUEUE and DEQUEUE operations should take constant time. Assume elements are integers. Briefly describe your implementation in the report. Clear solution with step by step and explaining it please.