Uploaded by Maryam Bibi

assignment Data structures

advertisement
COMSATS University Islamabad, Attock Campus
Department of Computer Science
Program: BCS
Assignment 1
Course: - Data Structures and Algorithms
Deadline: September 30, 2022.
Marks: 10
Write algorithm to print only odd number from a linked list consisting of ten nodes. Write steps of dry run
of the algorithm.
Write algorithm to sum even and odd numbers separately stored in a linked list. There should be at least
ten values in the list. Show each step with dry run and values of each variable used at each iteration.
Your solution should be handwritten on A-4 paper in hard form. Sharing will lead to zero marks.
Download