Retired
Weighted Averages (retired)
Description:
You will be given two points, A & B, that lie on the same plane (XY). Your goal is to find another point that lies on the line segment AB. That point must be a certain closeness to point A as it is to point B.
A & B are arrays with the 0th index as the x-coordinate and the 1st being the y-coordinate. The point that is returned should also be an array with the same format. Example:
Find a point on line segment AB that is twice as close to A as it is a be. A(0,0) B(3,0)
function point([0,0], [3,0], 2){
}
This should return [2,0]
Fundamentals
Similar Kata:
Stats:
Created | Mar 4, 2018 |
Warriors Trained | 10 |
Total Skips | 0 |
Total Code Submissions | 13 |
Total Times Completed | 5 |
JavaScript Completions | 5 |
Total Stars | 0 |
% of votes with a positive feedback rating | 38% of 4 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 4 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |