SlideShare a Scribd company logo
1 of 1
Given the following method within the IntList class:
public IntList f() { if(head == null)
return null;
IntNode t = new IntNode(head.getNum(), null); for(IntNode pl = head, p2 = t; pl != null; pl =
pl.getNext())
if(pl.getNum()> p2.getNum()) { p2.setNext(new IntNode(pl.getNum(), null));
p2p2.getNext();
}
IntList res = new IntList(); res.head = t;
return res;
A. (7 points) What will the method f return for the list -
head 315729null

More Related Content

More from francescaj1

Given numRows and numColumns- print a list of all seats in a theater-.docx
Given numRows and numColumns- print a list of all seats in a theater-.docxGiven numRows and numColumns- print a list of all seats in a theater-.docx
Given numRows and numColumns- print a list of all seats in a theater-.docxfrancescaj1
 
Given is the IntNode class that represents an element in a linked list.docx
Given is the IntNode class that represents an element in a linked list.docxGiven is the IntNode class that represents an element in a linked list.docx
Given is the IntNode class that represents an element in a linked list.docxfrancescaj1
 
Given its reactants- state whether the reaction is an example of a hyd.docx
Given its reactants- state whether the reaction is an example of a hyd.docxGiven its reactants- state whether the reaction is an example of a hyd.docx
Given its reactants- state whether the reaction is an example of a hyd.docxfrancescaj1
 
Given is the IntNode class that represents an element in a linked list (3).docx
Given is the IntNode class that represents an element in a linked list (3).docxGiven is the IntNode class that represents an element in a linked list (3).docx
Given is the IntNode class that represents an element in a linked list (3).docxfrancescaj1
 
Given is the IntNode class that represents an element in a linked list (1).docx
Given is the IntNode class that represents an element in a linked list (1).docxGiven is the IntNode class that represents an element in a linked list (1).docx
Given is the IntNode class that represents an element in a linked list (1).docxfrancescaj1
 
Given is the class IntNode representing a member of a linked list- and.docx
Given is the class IntNode representing a member of a linked list- and.docxGiven is the class IntNode representing a member of a linked list- and.docx
Given is the class IntNode representing a member of a linked list- and.docxfrancescaj1
 
Given extremely high rates of obesity- diabetes and cancer- should the.docx
Given extremely high rates of obesity- diabetes and cancer- should the.docxGiven extremely high rates of obesity- diabetes and cancer- should the.docx
Given extremely high rates of obesity- diabetes and cancer- should the.docxfrancescaj1
 
Given input And a filter What is the output- (zero padding -0- stride-.docx
Given input And a filter What is the output- (zero padding -0- stride-.docxGiven input And a filter What is the output- (zero padding -0- stride-.docx
Given input And a filter What is the output- (zero padding -0- stride-.docxfrancescaj1
 
Give your own person opinion and response to this post- I think that C.docx
Give your own person opinion and response to this post- I think that C.docxGive your own person opinion and response to this post- I think that C.docx
Give your own person opinion and response to this post- I think that C.docxfrancescaj1
 
Give asymptotic upper and lower bounds for T(n) in each of the followi.docx
Give asymptotic upper and lower bounds for T(n) in each of the followi.docxGive asymptotic upper and lower bounds for T(n) in each of the followi.docx
Give asymptotic upper and lower bounds for T(n) in each of the followi.docxfrancescaj1
 
GENERAL ANIMAL ORGANIZATION - What are the three types of germ layers-.docx
GENERAL ANIMAL ORGANIZATION - What are the three types of germ layers-.docxGENERAL ANIMAL ORGANIZATION - What are the three types of germ layers-.docx
GENERAL ANIMAL ORGANIZATION - What are the three types of germ layers-.docxfrancescaj1
 
Give an example of homeostasis at each of these levels- cells- tissues.docx
Give an example of homeostasis at each of these levels- cells- tissues.docxGive an example of homeostasis at each of these levels- cells- tissues.docx
Give an example of homeostasis at each of these levels- cells- tissues.docxfrancescaj1
 
Genetics- A geneticist is studying two genes- Each gene can be either.docx
Genetics- A geneticist is studying two genes- Each gene can be either.docxGenetics- A geneticist is studying two genes- Each gene can be either.docx
Genetics- A geneticist is studying two genes- Each gene can be either.docxfrancescaj1
 
GEOMETRIC- SOCIAL MEDIA PRESENCE According to a recent Pew Research po.docx
GEOMETRIC- SOCIAL MEDIA PRESENCE According to a recent Pew Research po.docxGEOMETRIC- SOCIAL MEDIA PRESENCE According to a recent Pew Research po.docx
GEOMETRIC- SOCIAL MEDIA PRESENCE According to a recent Pew Research po.docxfrancescaj1
 
Geologic History of Yellowstone What is the sequence of geologic even.docx
Geologic History of Yellowstone  What is the sequence of geologic even.docxGeologic History of Yellowstone  What is the sequence of geologic even.docx
Geologic History of Yellowstone What is the sequence of geologic even.docxfrancescaj1
 
g each label into the proper position to identify the vertebra it desc.docx
g each label into the proper position to identify the vertebra it desc.docxg each label into the proper position to identify the vertebra it desc.docx
g each label into the proper position to identify the vertebra it desc.docxfrancescaj1
 
Frustration of purpose requires all of the following to occur except.docx
Frustration of purpose requires all of the following to occur except.docxFrustration of purpose requires all of the following to occur except.docx
Frustration of purpose requires all of the following to occur except.docxfrancescaj1
 
Future value of an ordinary annuity- Fill in the missing future values.docx
Future value of an ordinary annuity- Fill in the missing future values.docxFuture value of an ordinary annuity- Fill in the missing future values.docx
Future value of an ordinary annuity- Fill in the missing future values.docxfrancescaj1
 
fx(x)-fx(x)- then prove xPr(x-x)E(x)x.docx
fx(x)-fx(x)- then prove xPr(x-x)E(x)x.docxfx(x)-fx(x)- then prove xPr(x-x)E(x)x.docx
fx(x)-fx(x)- then prove xPr(x-x)E(x)x.docxfrancescaj1
 
FS 21 Travis McAllister operates a surveying company- For the first fe.docx
FS 21 Travis McAllister operates a surveying company- For the first fe.docxFS 21 Travis McAllister operates a surveying company- For the first fe.docx
FS 21 Travis McAllister operates a surveying company- For the first fe.docxfrancescaj1
 

More from francescaj1 (20)

Given numRows and numColumns- print a list of all seats in a theater-.docx
Given numRows and numColumns- print a list of all seats in a theater-.docxGiven numRows and numColumns- print a list of all seats in a theater-.docx
Given numRows and numColumns- print a list of all seats in a theater-.docx
 
Given is the IntNode class that represents an element in a linked list.docx
Given is the IntNode class that represents an element in a linked list.docxGiven is the IntNode class that represents an element in a linked list.docx
Given is the IntNode class that represents an element in a linked list.docx
 
Given its reactants- state whether the reaction is an example of a hyd.docx
Given its reactants- state whether the reaction is an example of a hyd.docxGiven its reactants- state whether the reaction is an example of a hyd.docx
Given its reactants- state whether the reaction is an example of a hyd.docx
 
Given is the IntNode class that represents an element in a linked list (3).docx
Given is the IntNode class that represents an element in a linked list (3).docxGiven is the IntNode class that represents an element in a linked list (3).docx
Given is the IntNode class that represents an element in a linked list (3).docx
 
Given is the IntNode class that represents an element in a linked list (1).docx
Given is the IntNode class that represents an element in a linked list (1).docxGiven is the IntNode class that represents an element in a linked list (1).docx
Given is the IntNode class that represents an element in a linked list (1).docx
 
Given is the class IntNode representing a member of a linked list- and.docx
Given is the class IntNode representing a member of a linked list- and.docxGiven is the class IntNode representing a member of a linked list- and.docx
Given is the class IntNode representing a member of a linked list- and.docx
 
Given extremely high rates of obesity- diabetes and cancer- should the.docx
Given extremely high rates of obesity- diabetes and cancer- should the.docxGiven extremely high rates of obesity- diabetes and cancer- should the.docx
Given extremely high rates of obesity- diabetes and cancer- should the.docx
 
Given input And a filter What is the output- (zero padding -0- stride-.docx
Given input And a filter What is the output- (zero padding -0- stride-.docxGiven input And a filter What is the output- (zero padding -0- stride-.docx
Given input And a filter What is the output- (zero padding -0- stride-.docx
 
Give your own person opinion and response to this post- I think that C.docx
Give your own person opinion and response to this post- I think that C.docxGive your own person opinion and response to this post- I think that C.docx
Give your own person opinion and response to this post- I think that C.docx
 
Give asymptotic upper and lower bounds for T(n) in each of the followi.docx
Give asymptotic upper and lower bounds for T(n) in each of the followi.docxGive asymptotic upper and lower bounds for T(n) in each of the followi.docx
Give asymptotic upper and lower bounds for T(n) in each of the followi.docx
 
GENERAL ANIMAL ORGANIZATION - What are the three types of germ layers-.docx
GENERAL ANIMAL ORGANIZATION - What are the three types of germ layers-.docxGENERAL ANIMAL ORGANIZATION - What are the three types of germ layers-.docx
GENERAL ANIMAL ORGANIZATION - What are the three types of germ layers-.docx
 
Give an example of homeostasis at each of these levels- cells- tissues.docx
Give an example of homeostasis at each of these levels- cells- tissues.docxGive an example of homeostasis at each of these levels- cells- tissues.docx
Give an example of homeostasis at each of these levels- cells- tissues.docx
 
Genetics- A geneticist is studying two genes- Each gene can be either.docx
Genetics- A geneticist is studying two genes- Each gene can be either.docxGenetics- A geneticist is studying two genes- Each gene can be either.docx
Genetics- A geneticist is studying two genes- Each gene can be either.docx
 
GEOMETRIC- SOCIAL MEDIA PRESENCE According to a recent Pew Research po.docx
GEOMETRIC- SOCIAL MEDIA PRESENCE According to a recent Pew Research po.docxGEOMETRIC- SOCIAL MEDIA PRESENCE According to a recent Pew Research po.docx
GEOMETRIC- SOCIAL MEDIA PRESENCE According to a recent Pew Research po.docx
 
Geologic History of Yellowstone What is the sequence of geologic even.docx
Geologic History of Yellowstone  What is the sequence of geologic even.docxGeologic History of Yellowstone  What is the sequence of geologic even.docx
Geologic History of Yellowstone What is the sequence of geologic even.docx
 
g each label into the proper position to identify the vertebra it desc.docx
g each label into the proper position to identify the vertebra it desc.docxg each label into the proper position to identify the vertebra it desc.docx
g each label into the proper position to identify the vertebra it desc.docx
 
Frustration of purpose requires all of the following to occur except.docx
Frustration of purpose requires all of the following to occur except.docxFrustration of purpose requires all of the following to occur except.docx
Frustration of purpose requires all of the following to occur except.docx
 
Future value of an ordinary annuity- Fill in the missing future values.docx
Future value of an ordinary annuity- Fill in the missing future values.docxFuture value of an ordinary annuity- Fill in the missing future values.docx
Future value of an ordinary annuity- Fill in the missing future values.docx
 
fx(x)-fx(x)- then prove xPr(x-x)E(x)x.docx
fx(x)-fx(x)- then prove xPr(x-x)E(x)x.docxfx(x)-fx(x)- then prove xPr(x-x)E(x)x.docx
fx(x)-fx(x)- then prove xPr(x-x)E(x)x.docx
 
FS 21 Travis McAllister operates a surveying company- For the first fe.docx
FS 21 Travis McAllister operates a surveying company- For the first fe.docxFS 21 Travis McAllister operates a surveying company- For the first fe.docx
FS 21 Travis McAllister operates a surveying company- For the first fe.docx
 

Recently uploaded

Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfElizabeth Walsh
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfKartik Tiwari
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxRugvedSathawane
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfJerry Chew
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 

Recently uploaded (20)

Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 

Given the following method within the IntList class- public IntList.docx

  • 1. Given the following method within the IntList class: public IntList f() { if(head == null) return null; IntNode t = new IntNode(head.getNum(), null); for(IntNode pl = head, p2 = t; pl != null; pl = pl.getNext()) if(pl.getNum()> p2.getNum()) { p2.setNext(new IntNode(pl.getNum(), null)); p2p2.getNext(); } IntList res = new IntList(); res.head = t; return res; A. (7 points) What will the method f return for the list - head 315729null