Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincevargadev/algorithms_dart
Test-Driven Dart Algorithms. Coding interview questions, algorithms, problems solved using Dart.
https://github.com/vincevargadev/algorithms_dart
algorithm-challenges algorithms coding-challenge coding-interviews dart dartlang interview-practice programming-challenges tdd tech-interview test-driven-dart test-driven-development
Last synced: about 12 hours ago
JSON representation
Test-Driven Dart Algorithms. Coding interview questions, algorithms, problems solved using Dart.
- Host: GitHub
- URL: https://github.com/vincevargadev/algorithms_dart
- Owner: vincevargadev
- License: apache-2.0
- Created: 2019-06-19T18:35:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T04:42:19.000Z (over 5 years ago)
- Last Synced: 2025-02-14T17:18:50.196Z (about 12 hours ago)
- Topics: algorithm-challenges, algorithms, coding-challenge, coding-interviews, dart, dartlang, interview-practice, programming-challenges, tdd, tech-interview, test-driven-dart, test-driven-development
- Language: Dart
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [`dartsidedev/algorithms`](https://github.com/dartsidedev/algorithms)
**Solutions to various algorithms using the Dart programming language.**
> by [Vince Varga](https://github.com/vargavince91)
## What to expect
I decided to implement various algorithms, solve programming challenges and problems, all the while I'm learnign to write idiomatic [Dart](http://dart.dev) code and get better at testing in Dart. I used to test everything thoroughly in JavaScript, but didn't really learn the testing libraries in Dart yet.
Based on the things I'm learning here, I write a Dart package for all things data structures and common algorithms. Go to [`dartsidedev/pop_dart`](https://github.com/dartsidedev/pop_dart) to figure out where we stand on library front today.
## Development
### Formatting
This project uses [`dartfmt`](https://dart.dev/tools/dartfmt) to idiomatically format Dart source code.
Run `dartfmt -w .` before committing to make sure every Dart file is properly formatted.
```
## Format and fix issues.
$ dartfmt -w .## Command running in CI.
$ dartfmt -n --set-exit-if-changed .
## See return value of dartfmt. If equals to 1, the build will fail.
$ echo $?
```### Static analysis and linter
We use [`dartanalyzer`](https://dart.dev/tools/dartanalyzer) to run static analysis and a linter on this project.
```
## Run analyzer and see any issues.
$ dartanalyzer .## Command running in CI.
$ dartanalyzer --fatal-infos --fatal-warnings .
## See return value of dartanalyzer. If equals to 1, the build will fail.
$ echo $?
```This project's [`analysis_options.yaml`](./analysis_options.yaml) file is taken from the [`flutter/flutter`](https://github.com/flutter/flutter/blob/master/analysis_options.yaml) project.
### Tests
Run all tests in the project by executing `pub run test .` command.
### Continuous Integration
We use Travis CI to check our code on every push.
[![Travis CI Build Status](https://travis-ci.com/dartsidedev/algorithms.svg?branch=master)](https://travis-ci.com/dartsidedev/algorithms)
### Run all commands locally
```
bash check
```