nas5w / javascript-patterns

A collection of javascript algorithms, patterns, and techniques
MIT License
293 stars 69 forks source link

Find 3 collinear points in a 2d graph #126

Open phara0hcom opened 5 years ago

phara0hcom commented 5 years ago

I made this algorithm I don't know if it is the best solution but I can make a PR and add it: https://github.com/phara0hcom/learAlgorithms/blob/master/collinearLineAlgo.js

please let me know. I'll write some test for it as well.