This lab is due by Friday, July 08, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.
Instructions
A skeletal test suite has been provided for you in linked_list_tests.zip. This test suite has the function stubs created so the code will compile, but when attempting to run it will immediately fail due to null pointer errors.
Your job: implement each function such that all tests pass.
When your program prints PASSED
for
a given unit test instead of FAILED
, then you know that your function
implementation for that test is complete.
Hints
- We recommend that you complete the functions in the order in which the comments are presented to pass the tests top down.
- If you have trouble getting a function to pass its test, use the debugger with breakpoints to help you troubleshoot what your code is doing.
Functional Requirements
- You must not modify the contents of
main()
orrun_all_tests()
.
Lab Submission
Submit your linked_list_functions.cpp
file(s).
You will submit your solution to this lab with the rest of Set3. Detailed instructions for doing this are posted in Assignment 3.
This lab is due by Friday, July 08, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.