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

Stats:

CreatedMar 4, 2018
Warriors Trained10
Total Skips0
Total Code Submissions13
Total Times Completed5
JavaScript Completions5
Total Stars0
% of votes with a positive feedback rating38% of 4
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes1
Total Rank Assessments4
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • davinASC4 Avatar
Ad