SlideShare a Scribd company logo
Given the lists, 1st1 and 1st 2, create a new sorted list consisting of all the elemen ts of Ist1 that
do not appear in 1st2 together with all the elements of 1st2 that do not appear in 1st1 For
example, if 1sti is [4, 3, 2, 6, 2] and 1st2 is [1, 2, 4, 1, 5] then the new list would be [1, 1, 3, 5, 6]
Note that duplicate elements are also du plicated in the new list Assign the new list with the
variable new list, and don't for get to sort the new list

More Related Content

More from aaicommunication34

Goal- Your goal in this assignment is to write a Java program that sim.pdf
Goal- Your goal in this assignment is to write a Java program that sim.pdfGoal- Your goal in this assignment is to write a Java program that sim.pdf
Goal- Your goal in this assignment is to write a Java program that sim.pdf
aaicommunication34
 
Glycolysis is the process by which is oxidized into The TCA cycle is t.pdf
Glycolysis is the process by which is oxidized into The TCA cycle is t.pdfGlycolysis is the process by which is oxidized into The TCA cycle is t.pdf
Glycolysis is the process by which is oxidized into The TCA cycle is t.pdf
aaicommunication34
 
Glycolysis- the TCA or Krebs Cycle- and the electron transport system.pdf
Glycolysis- the TCA or Krebs Cycle- and the electron transport system.pdfGlycolysis- the TCA or Krebs Cycle- and the electron transport system.pdf
Glycolysis- the TCA or Krebs Cycle- and the electron transport system.pdf
aaicommunication34
 
Given the probabilities of two independent events- P(A)-0-12P(B)-0-22.pdf
Given the probabilities of two independent events- P(A)-0-12P(B)-0-22.pdfGiven the probabilities of two independent events- P(A)-0-12P(B)-0-22.pdf
Given the probabilities of two independent events- P(A)-0-12P(B)-0-22.pdf
aaicommunication34
 
Given the header of a method public static String m1 (double num1- cha.pdf
Given the header of a method public static String m1 (double num1- cha.pdfGiven the header of a method public static String m1 (double num1- cha.pdf
Given the header of a method public static String m1 (double num1- cha.pdf
aaicommunication34
 
Given the utility function U(X-Y)-XY- Abby consumes X-4 and Y-9- her M.pdf
Given the utility function U(X-Y)-XY- Abby consumes X-4 and Y-9- her M.pdfGiven the utility function U(X-Y)-XY- Abby consumes X-4 and Y-9- her M.pdf
Given the utility function U(X-Y)-XY- Abby consumes X-4 and Y-9- her M.pdf
aaicommunication34
 
Given the utility function U(X-Y)-XY- Abby consumes X-2 and Y-7- her M.pdf
Given the utility function U(X-Y)-XY- Abby consumes X-2 and Y-7- her M.pdfGiven the utility function U(X-Y)-XY- Abby consumes X-2 and Y-7- her M.pdf
Given the utility function U(X-Y)-XY- Abby consumes X-2 and Y-7- her M.pdf
aaicommunication34
 
Globalisation is the process by which businesses develop international.pdf
Globalisation is the process by which businesses develop international.pdfGlobalisation is the process by which businesses develop international.pdf
Globalisation is the process by which businesses develop international.pdf
aaicommunication34
 
Gloria Chu- a general manager at the MotoX Corporation- wants all of h.pdf
Gloria Chu- a general manager at the MotoX Corporation- wants all of h.pdfGloria Chu- a general manager at the MotoX Corporation- wants all of h.pdf
Gloria Chu- a general manager at the MotoX Corporation- wants all of h.pdf
aaicommunication34
 
Globalization has led to a- increasing loyalty of customers for produc.pdf
Globalization has led to a- increasing loyalty of customers for produc.pdfGlobalization has led to a- increasing loyalty of customers for produc.pdf
Globalization has led to a- increasing loyalty of customers for produc.pdf
aaicommunication34
 
GKC- CPA expressed an adverse opinion on the operating effectiveness o.pdf
GKC- CPA expressed an adverse opinion on the operating effectiveness o.pdfGKC- CPA expressed an adverse opinion on the operating effectiveness o.pdf
GKC- CPA expressed an adverse opinion on the operating effectiveness o.pdf
aaicommunication34
 
Given the probability density function f(x)-2x-3 for 0x3- derive the e.pdf
Given the probability density function f(x)-2x-3 for 0x3- derive the e.pdfGiven the probability density function f(x)-2x-3 for 0x3- derive the e.pdf
Given the probability density function f(x)-2x-3 for 0x3- derive the e.pdf
aaicommunication34
 
HANDOUT 7-3 Filling in the Blanks Write letters in the blanks to compl.pdf
HANDOUT 7-3 Filling in the Blanks Write letters in the blanks to compl.pdfHANDOUT 7-3 Filling in the Blanks Write letters in the blanks to compl.pdf
HANDOUT 7-3 Filling in the Blanks Write letters in the blanks to compl.pdf
aaicommunication34
 
Given the joint probability density function f(x-y)-6x(1y) on 0x1 and (1).pdf
Given the joint probability density function f(x-y)-6x(1y) on 0x1 and (1).pdfGiven the joint probability density function f(x-y)-6x(1y) on 0x1 and (1).pdf
Given the joint probability density function f(x-y)-6x(1y) on 0x1 and (1).pdf
aaicommunication34
 
hacer un programa en c++ que registre los pacientes cuando lleguen a u.pdf
hacer un programa en c++ que registre los pacientes cuando lleguen a u.pdfhacer un programa en c++ que registre los pacientes cuando lleguen a u.pdf
hacer un programa en c++ que registre los pacientes cuando lleguen a u.pdf
aaicommunication34
 
H0-p1p2Ha-p1p2.pdf
H0-p1p2Ha-p1p2.pdfH0-p1p2Ha-p1p2.pdf
H0-p1p2Ha-p1p2.pdf
aaicommunication34
 
Ha-p1p2.pdf
Ha-p1p2.pdfHa-p1p2.pdf
Ha-p1p2.pdf
aaicommunication34
 
Hacer un programa en c++ que permita realizar las votaciones de una el.pdf
Hacer un programa en c++ que permita realizar las votaciones de una el.pdfHacer un programa en c++ que permita realizar las votaciones de una el.pdf
Hacer un programa en c++ que permita realizar las votaciones de una el.pdf
aaicommunication34
 
h- Pad the smoumt ewied an the inveke within the dinceunt period- c- D.pdf
h- Pad the smoumt ewied an the inveke within the dinceunt period- c- D.pdfh- Pad the smoumt ewied an the inveke within the dinceunt period- c- D.pdf
h- Pad the smoumt ewied an the inveke within the dinceunt period- c- D.pdf
aaicommunication34
 
grow by the same percentage- What was the value of the house in the ye.pdf
grow by the same percentage- What was the value of the house in the ye.pdfgrow by the same percentage- What was the value of the house in the ye.pdf
grow by the same percentage- What was the value of the house in the ye.pdf
aaicommunication34
 

More from aaicommunication34 (20)

Goal- Your goal in this assignment is to write a Java program that sim.pdf
Goal- Your goal in this assignment is to write a Java program that sim.pdfGoal- Your goal in this assignment is to write a Java program that sim.pdf
Goal- Your goal in this assignment is to write a Java program that sim.pdf
 
Glycolysis is the process by which is oxidized into The TCA cycle is t.pdf
Glycolysis is the process by which is oxidized into The TCA cycle is t.pdfGlycolysis is the process by which is oxidized into The TCA cycle is t.pdf
Glycolysis is the process by which is oxidized into The TCA cycle is t.pdf
 
Glycolysis- the TCA or Krebs Cycle- and the electron transport system.pdf
Glycolysis- the TCA or Krebs Cycle- and the electron transport system.pdfGlycolysis- the TCA or Krebs Cycle- and the electron transport system.pdf
Glycolysis- the TCA or Krebs Cycle- and the electron transport system.pdf
 
Given the probabilities of two independent events- P(A)-0-12P(B)-0-22.pdf
Given the probabilities of two independent events- P(A)-0-12P(B)-0-22.pdfGiven the probabilities of two independent events- P(A)-0-12P(B)-0-22.pdf
Given the probabilities of two independent events- P(A)-0-12P(B)-0-22.pdf
 
Given the header of a method public static String m1 (double num1- cha.pdf
Given the header of a method public static String m1 (double num1- cha.pdfGiven the header of a method public static String m1 (double num1- cha.pdf
Given the header of a method public static String m1 (double num1- cha.pdf
 
Given the utility function U(X-Y)-XY- Abby consumes X-4 and Y-9- her M.pdf
Given the utility function U(X-Y)-XY- Abby consumes X-4 and Y-9- her M.pdfGiven the utility function U(X-Y)-XY- Abby consumes X-4 and Y-9- her M.pdf
Given the utility function U(X-Y)-XY- Abby consumes X-4 and Y-9- her M.pdf
 
Given the utility function U(X-Y)-XY- Abby consumes X-2 and Y-7- her M.pdf
Given the utility function U(X-Y)-XY- Abby consumes X-2 and Y-7- her M.pdfGiven the utility function U(X-Y)-XY- Abby consumes X-2 and Y-7- her M.pdf
Given the utility function U(X-Y)-XY- Abby consumes X-2 and Y-7- her M.pdf
 
Globalisation is the process by which businesses develop international.pdf
Globalisation is the process by which businesses develop international.pdfGlobalisation is the process by which businesses develop international.pdf
Globalisation is the process by which businesses develop international.pdf
 
Gloria Chu- a general manager at the MotoX Corporation- wants all of h.pdf
Gloria Chu- a general manager at the MotoX Corporation- wants all of h.pdfGloria Chu- a general manager at the MotoX Corporation- wants all of h.pdf
Gloria Chu- a general manager at the MotoX Corporation- wants all of h.pdf
 
Globalization has led to a- increasing loyalty of customers for produc.pdf
Globalization has led to a- increasing loyalty of customers for produc.pdfGlobalization has led to a- increasing loyalty of customers for produc.pdf
Globalization has led to a- increasing loyalty of customers for produc.pdf
 
GKC- CPA expressed an adverse opinion on the operating effectiveness o.pdf
GKC- CPA expressed an adverse opinion on the operating effectiveness o.pdfGKC- CPA expressed an adverse opinion on the operating effectiveness o.pdf
GKC- CPA expressed an adverse opinion on the operating effectiveness o.pdf
 
Given the probability density function f(x)-2x-3 for 0x3- derive the e.pdf
Given the probability density function f(x)-2x-3 for 0x3- derive the e.pdfGiven the probability density function f(x)-2x-3 for 0x3- derive the e.pdf
Given the probability density function f(x)-2x-3 for 0x3- derive the e.pdf
 
HANDOUT 7-3 Filling in the Blanks Write letters in the blanks to compl.pdf
HANDOUT 7-3 Filling in the Blanks Write letters in the blanks to compl.pdfHANDOUT 7-3 Filling in the Blanks Write letters in the blanks to compl.pdf
HANDOUT 7-3 Filling in the Blanks Write letters in the blanks to compl.pdf
 
Given the joint probability density function f(x-y)-6x(1y) on 0x1 and (1).pdf
Given the joint probability density function f(x-y)-6x(1y) on 0x1 and (1).pdfGiven the joint probability density function f(x-y)-6x(1y) on 0x1 and (1).pdf
Given the joint probability density function f(x-y)-6x(1y) on 0x1 and (1).pdf
 
hacer un programa en c++ que registre los pacientes cuando lleguen a u.pdf
hacer un programa en c++ que registre los pacientes cuando lleguen a u.pdfhacer un programa en c++ que registre los pacientes cuando lleguen a u.pdf
hacer un programa en c++ que registre los pacientes cuando lleguen a u.pdf
 
H0-p1p2Ha-p1p2.pdf
H0-p1p2Ha-p1p2.pdfH0-p1p2Ha-p1p2.pdf
H0-p1p2Ha-p1p2.pdf
 
Ha-p1p2.pdf
Ha-p1p2.pdfHa-p1p2.pdf
Ha-p1p2.pdf
 
Hacer un programa en c++ que permita realizar las votaciones de una el.pdf
Hacer un programa en c++ que permita realizar las votaciones de una el.pdfHacer un programa en c++ que permita realizar las votaciones de una el.pdf
Hacer un programa en c++ que permita realizar las votaciones de una el.pdf
 
h- Pad the smoumt ewied an the inveke within the dinceunt period- c- D.pdf
h- Pad the smoumt ewied an the inveke within the dinceunt period- c- D.pdfh- Pad the smoumt ewied an the inveke within the dinceunt period- c- D.pdf
h- Pad the smoumt ewied an the inveke within the dinceunt period- c- D.pdf
 
grow by the same percentage- What was the value of the house in the ye.pdf
grow by the same percentage- What was the value of the house in the ye.pdfgrow by the same percentage- What was the value of the house in the ye.pdf
grow by the same percentage- What was the value of the house in the ye.pdf
 

Recently uploaded

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 

Recently uploaded (20)

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 

Given the lists- 1st1 and 1st 2- create a new sorted list consisting o.pdf

  • 1. Given the lists, 1st1 and 1st 2, create a new sorted list consisting of all the elemen ts of Ist1 that do not appear in 1st2 together with all the elements of 1st2 that do not appear in 1st1 For example, if 1sti is [4, 3, 2, 6, 2] and 1st2 is [1, 2, 4, 1, 5] then the new list would be [1, 1, 3, 5, 6] Note that duplicate elements are also du plicated in the new list Assign the new list with the variable new list, and don't for get to sort the new list