- Binary Tree
- Binary Search Tree for Dictionary
- Inordered Threaded Binary Search Tree
- HashTable with Linear Probing
- HashTable with external chaining using linked list
- BFS and DFS of Graph Data Structure
- Minimum Spanning Tree using Prim's Algorithm
- Topological Sort on Graph Data Structure
- Heap Sort implementation using CPP
- Sequential File Organization implementation using CPP
Problem Statement :- In second-year computer engineering class, group A student's play cricket, group B students play badminton and group C students play football. Write a Python program using functions to compute the following:- a) List of students who play both cricket and badminton b) List of students who play either cricket or badminton or both c) Number of students who play neither cricket nor badminton d) Number of students who play cricket and football but not badminton. (Note- While realizing the group, duplicate entries should be avoided, Do not use SET built-in functions) Note :- Scroll horizontally to see the full line of code. def Addelem ( A , a ): for i in range ( a ): elem = input ( "Enter the name of student:" ) if ( elem ...
Comments
Post a Comment