Professional Documents
Culture Documents
ASU F23 Tut08 BST and HashTable
ASU F23 Tut08 BST and HashTable
ASU-F23-Tut08-Ex02-BST.hpp
ASU-F23-Tut08-Ex02-BST-Driver.cpp
IMPORTANT
ASSIGNMENT
Question 1
Write a function to reverse a linked list using a stack with function prototype:
Node* reverse_linked_list(Node* head)
This function takes a pointer to the first node of the linked list as input, and
returns a pointer to the first node of the reversed linked list.
. Weight: 2 marks .
IMPORTANT
ASSIGNMENT
Submission Details (Due next Monday)
- On LMS, soft copy submission: .cpp files and .hpp files (if you made any); and simple
code documentation in a Word (.docx) or PDF (.pdf) file.
- Keep your code clean. Clean code does not need comments to explain it, it should be
readable on its own. Save your commentary and explanation for your documentation.
Exercise
Let’s change topics… Hash Table time! Starting simple: Chaining Hash Table.
ASU-F23-Tut08-Ex03-StudentsHashTableChaining-Header.hpp
ASU-F23-Tut08-Ex03-StudentsHashTableChaining-Driver.cpp
THANKS
Does anyone have any questions?
See you next time! :)