Quick Index
Video


Here is a video that accompanies this page.

Problem Statement


For this challenge we'll aim to do a little magic and reduce about 1000 lines of code (typical for this project) to 50 lines of code (goal).

Also see "References" below.

We know we need a linked and arrayed version of each specialized structure. So eight object types total.

Design 💡


Design is the key to this challenge, and at this point in the project we've jumped into the design head first, and we've come up with our best design.

Housekeeping


Also see "Packages" below.


Packages



Implementation (Package 'ss')


The package 'ss' is where it all happens. This is where you implement the solution.

Classes to Code:


NOTE WELL -- these classes should all have a generic parameter for the type of element they contain. Also, when using other types, and the given type (e.g., DynamicList, StackIdea, etc) has a generic type, declarations should include proper generics.


NOTE WELL -- the interface JAVA files provide method descriptions. You do not need to code any methods that are labeled "optional".

Provided Code


Here is the provided code...

Submitting Code



References - Specialized Structures


The concepts for the four specialized structures can be found in any of these sources:


References - Code Reuse