about | help | code help+videos | done | prefs |
Find the slope though two points on a plane where the first point is the origin and the second point is represented by (x, y). You may assume the two points do not lie on the same vertical line. slopeThroughTheOrigin(3, 3) → 1.0 slopeThroughTheOrigin(4, -4) → -1.0 slopeThroughTheOrigin(2, 1) → 0.5 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 202 Post-solution available
Copyright Nick Parlante 2017 - privacy