8 kyu
Find the Slope
1,842 of 10,716elexie
Description:
Given an array of 4 integers[a,b,c,d]
representing two points (a, b)
and (c, d)
, return a string representation of the slope of the line joining these two points.
For an undefined slope (division by 0), return undefined
. Note that the "undefined" is case-sensitive.
a:x1
b:y1
c:x2
d:y2
Assume that [a,b,c,d]
and the answer are all integers
(no floating numbers!).
Slope: https://en.wikipedia.org/wiki/Slope
Mathematics
Fundamentals
Algebra
Similar Kata:
Stats:
Created | Jul 16, 2015 |
Published | Jul 17, 2015 |
Warriors Trained | 16264 |
Total Skips | 829 |
Total Code Submissions | 34072 |
Total Times Completed | 10716 |
Java Completions | 1842 |
C# Completions | 789 |
Python Completions | 3443 |
JavaScript Completions | 4047 |
Ruby Completions | 538 |
CoffeeScript Completions | 35 |
Clojure Completions | 359 |
Elixir Completions | 152 |
Total Stars | 128 |
% of votes with a positive feedback rating | 87% of 1465 |
Total "Very Satisfied" Votes | 1152 |
Total "Somewhat Satisfied" Votes | 238 |
Total "Not Satisfied" Votes | 75 |