Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assignment2

  1. User can choose from Linked List or Stack
  2. If user chooses Linked List, they get the option to have a string or integer Linked List 3a. Whether user chooses string or integer linked list, they are presented with a variety of options (although they are the same)

String:

image

Integer:

image

Option 1 adds to the head of Linked List

String:

image

Integer:

image

Option 2 adds to the tail of Linked List

image image

Option 3 notifies that head has been removed

image image

Option 4 notifies that tail has been removed

image image

After adding strings "b", "c", "d", and "11" to the string linked list with push_front(): Option 5 checks for 1st element

image image

Option 6 checks for last element

image image

Option 7 inserts an element to a specified index

image image

Option 8 removes an element using a specified index

image image

Option 9 finds the index using the value

image image

Option 10 ends the program

image

3b. If the user chooses stack, they can choose from 5 options

image

Option 1 adds each input to the top of the stack (assume that integer 2 has been added on top of the stack as well)

image

Option 2 removes the topmost element in the stack

image

Option 3 identifies the topmost element in the stack

image

Option 4 finds the average for all values in the stack

image

Option 5 stops the program

image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages