Code Monkey home page Code Monkey logo

scala's Introduction

The Algorithms - Scala

Implementation of various algorithms in Scala programming language

How to use this repository for learning purpose ?

  • Download and install Scala

  • Clone the repository on your local machine

    git clone https://github.com/TheAlgorithms/Scala.git

  • Open the repository using an IDE (Preferably IntelliJ)

  • Enable auto-import to import the dependencies from build.sbt

  • Open the src/main/scala to view the algorithm implementations under various categories

  • Open src/test/scala to run the test cases and view the algorithm in action

  • Visit Algorithms-Explained to get a more detailed explanation about specific algorithms

  • Check Algorithms Visualization for visualization of numerous algorithms

How to contribute to this repository ?

Contributing Algorithms : (Make sure to check all the points below before opening a PR)

  • Make sure you follow proper coding standards and naming conventions. Please use Binary Search Implementation and Binary Search Test as a reference.
  • Add the algorithm implementation as an object and not as a class
  • Add proper comments about the algorithm implementation and the functions present in the algorithm
  • Add a test spec in the test folder under the same domain as that of your algorithm. PR without a test spec would not be accepted
  • Add at least 1 positive and 1 negative test in the test spec
  • Remove the target files using below commands
git rm -r --cached target/
git rm -r --cached project/target

Contributing Tests :

  • You can contribute tests for a specific algorithm
  • Add as many tests as you can and try to cover all the border line test cases
  • Open a PR with for your testSpec
  • Make sure you are not adding redundant test cases
  • If you see that the algorithm fails for a particular test case, then open an issue with proper explanation.
  • How to write a test case in Scala

scala's People

Contributors

varunu28 avatar andreicioban avatar ab-anand avatar popoapp avatar dynamitechetan avatar sake92 avatar anupkumarpanwar avatar ngmp avatar ngbountos avatar phillip055 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.