Code Monkey home page Code Monkey logo

linkedlist's Introduction

##==begin README
#
# Yes - there are supposed to be 2 1's
#
# 0) Fork this Github Project
#
# 1) in your fork
#    1) break README, NODE, and LIST into 3 files - Readme, node.rb, and list.rb
#    2) create 2 test files - one for node and one for list
#
# 1) Write empty test wrappers for each of the methods in described in the class
#
# 2) for each of the test wrappers marked #:record_attr
#    1) design assertions according to comment about method - failing test
#    2) write code - passing test
#
# 3) for each of the rest of the test wrappers
#    1) design assertions according to comment about method - failing test
#    2) write code - passing test
#
# 5) implement tests for the following scenarios
#    1) find first node which has the value 'a'
#    2) find all nodes which have the value 'z'
#    3) sort a list
#       1) each of the nodes in the List will have a number (n > 0 < n)
#       2) this method will re-order a copy of the list
#       3) hint => use message 'dup' to make a copy of an object
#
# 8) implement methods for the tests in step 5
#
# BONUS POINTS
# 
# 13) add a test for a class method to List with the following interface
#
#   class << self
#     def fibonacci(length)
#       # return 'length' elements of fibonacci sequence
#     end
#   end
# 
# 21) think of a common alternative name for :
#
#   'insert_next'
#   'remove_next'
#   'insert_begining'
#   'remove_begining'
#
#   Hint - What are Stack operations?
#
#   (method-rename:refactor)
#   Refactor your test and then your code to use your new names
#
##==end README

linkedlist's People

Contributors

anteaya avatar

Stargazers

 avatar

Watchers

 avatar  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.