Skip to content

A Linked List is a type of Data Structure. I've wrote this in Java 16.0.1. Check README.md for more details. Enjoy!

Notifications You must be signed in to change notification settings

noahn84/LinkedList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time & Space Complexity

  • Insertion: O(1) // always inserting at beginning (constant time)
  • Deletion: O(1) // always deleting at beginning (constant time)
  • Searching: O(n) // will have to search n/2 on average (n = # of items in linked list) (linear time)
  • O(n) time | O(n) space

How to view the code 'under the hood'

  • If you want to see the code under LinkedListApp, open the src/LinkedListApp.java file
  • PS: (Don't worry about the other files located in /src. Those were created upon initial compilation)

How to run LinkedListApp

  • There are two ways to run the app in VSCode:
  • 1). Running in the CLI
  • 2). Running within the 'main' method
  • IMPORTANT: I've compiled the java program prior to uploading to GitHub, so no need to compile (check /bin/)

Running from CLI (*recommended)

  • To run in CLI, open the CLI (Windows/macOS/Unix: Ctrl + `) and change directory to LinkedList/src
  • Enter 'java LinkedListApp'

Running from 'main' method (*not recommended)

  • Expand 'src' directory on left-hand side
  • Click LinkedListApp.java
  • Scroll down to the last (main) class (LinkedListApp)
  • Click 'Run' above the main method (appears as 'Run | Debug')

Enjoy!

  • Recommendations factor in ease-of-use as well as future-proofing.
  • Running applications through CLI has been the same for years already, so it will likely stay the same for years to come
  • Running applications through VSCode GUI depends on the version of the users application. Our versions might not match. Becasue of this, I've deemed this method unreliable

About

A Linked List is a type of Data Structure. I've wrote this in Java 16.0.1. Check README.md for more details. Enjoy!

Topics

Resources

Stars

Watchers

Forks

Languages