Giter Site home page Giter Site logo

linked_lists's Introduction

Linked list

This is my version of a linked list data structure, written in Ruby.

Rubyists don't actually need to use linked lists, because the native arrays can be of unlimited size and are dynamic, but this project is a first step for me in working with more exotic data structures.

Screenshot

It's a project from The Odin Project.

Structure

This file contains two classes - LinkedList and Node. The LinkedList class supports the following methods: - #append - #prepend - #size - #head - #tail - #at(index) - #pop - #contains? - #find(data) - #to_s (represents the LinkedList objects as strings, so you can print them out and preview them in the console) - #insert_at(index) - #remove_at(index)

Installation

Open your terminal/command line. Navigate to the directory where you want this project to live. Type:

$ git clone https://github.com/Jonosenior/linked_lists.git
$ cd linked_lists
$ ruby linked_lists.rb

Thoughts

This is one of several projects related to data structures at this stage of The Odin Project. I found it really interesting delving into some basic computer science. I also discovered Harvard's CS50 course, which I'm keen to explore once I've finished with the Ruby and Rails sections TOP.

linked_lists's People

Contributors

jnsya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.