Skip to content

alecho/elixir-slope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slope

Given an array of 4 integers [a,b,c,d] representing two points (a, b) and (c, d), return the slope of the line joining these two points.

For an undefined slope (division by 0), return :undefined.

Assume that [a,b,c,d] and the answer are all integers (no floating numbers!). Slope: https://en.wikipedia.org/wiki/Slope

Modified from CodeWars

Installation

Clone this repository and run mix deps.get

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages