Giter Site home page Giter Site logo

andsarr / algorithms_princeton_template Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 29.95 MB

Coursera Programming Assignments template for the Princeton's Algorithms course

Shell 7.62% XSLT 2.54% Java 89.84%
coursera algorithms data-structures analysis-algorithms java princeton-algorithms

algorithms_princeton_template's Introduction

Algorithms.

Solutions of the Algorithms courses of the Princeton University in Coursera.

Part I covers elementary data structures, sorting, and searching algorithms. Part II focuses on graph- and string-processing algorithms.

The details of the courses can fe found in:

Structure

The src folder contains the solutions for each week in the following structure:

Note

The Gradle project creates for each assignment a task that will remove for each file, the package information and will put then in a zip file ready to submit to the Coursera platform. Before creating the Zip file, it will run the tests, SpotBugs, PDM, and CheckStyle to verify the quality of the solution.

algorithms_princeton_template's People

Contributors

andsarr avatar janluke avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

janluke

algorithms_princeton_template's Issues

Windows support

First, thank you for this template, it's great!

Unfortunately, linting tasks currently depend on bash scripts. I don't know batch scripting, so I can't help int translating those scripts in batch. Nonetheless, I personally solved the problem as follows:

  1. I added the bash executable bundled with "Git for Windows" to the PATH; precisely, I added "C:/Program Files/Git/bin" to the PATH;
  2. In coursera.gradle, I modified the tasks for spotbugs, checkstyle and PMD by setting commandLine to just 'bash' and moving the path of the actual script to args. For example:
tasks.create(
            name: "${assignment.name}CheckStyle",
            type: Exec,
            dependsOn: [downlodCheckStyle, "${assignment.name}CodeAnalysisPrepare"]
    ) {
        // omitted
        commandLine "bash"    // <-- put bash here 
        args = ["$projectDir/.lift/bin/checkstyle", "-coursera"] + assignment.sources
    }

Not sure why the following didn't work: commandLine 'bash', "$projectDir/.lift/bin/checkstyle".

This is not a real solution, but it's something. I can open a PR with these changes (and instructions in the README) if you want.

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.