WEEK-8
Write a program to implement Singly linked list
- Insert
- Delete
- Traverse
WEEK-7
A. Write a program to implement Stacks
Program:
Output:
B. Write a program to implement Queues
Program:
Output:
WEEK-6
A. Write a program to implement Merge Sort
Program:
WEEK-3
Write a Python program that inputs a list of words, separated by white space, and outputs how many times each word appears in the list.
Program:
Output:
WEEK-2
Develop an inheritance hierarchy based upon a Polygon class that has abstract methods area () and perimeter (). Implement classes Triangle, Quadrilateral, Pentagon, that extend this base class, with the obvious meanings for the area () and perimeter () methods. Write a simple program that allows users to create polygons of the various types and input their geometric dimensions, and the program then outputs their area and perimeter.
Program:
Write a program to implement Tree Traversal Algorithms Preorder Inorder Postorder Program: Output: