Skip to content

This is a repository for coding dojo excersises. The main goal is to practice problem solving and coding skills. Solutions can focus on a certain metric like efficiency, compactness, creativitiy, etc.

Notifications You must be signed in to change notification settings

fdendorfer/jls_coding_dojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding Dojo

This is a repository for coding dojo excersises. The main goal is to practice problem solving and coding skills. Solutions can focus on a certain metric like efficiency, compactness, creativitiy, etc.

How to use

  1. Clone the repository
  2. Add your solution to the src/solutions/contestant folder
  3. Run the main file with node src/main.js. Optionally you can add parameters to adjust the run configuration (e.g. node src/main.js --iterations=100 --filter=def,nes).

See config.js for parameter options

Folder structure

docs/
  excersise_1.md > description of the excersise + results
  ...
src/
  config.js > configuration for the test suite
  index.d.ts > typescript/jsdoc types
  main.js > decides what excersise to run and how many iterations to run
  test_suite.js > runs the test cases for a given excersise
  excersises/
    excersise_1.js > exports a an array of test cases
    ...
  solutions/
    contestant/
      excersise_1.js > exports a function solution(input)
      excersise_1.md > explanation of the solution
    .../...

How the test suite works

for each iteration        check if contestant has failed already
  for each contestant     start timer here
    for each test case
      test the solution   compare the result with the expected result

About

This is a repository for coding dojo excersises. The main goal is to practice problem solving and coding skills. Solutions can focus on a certain metric like efficiency, compactness, creativitiy, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published