6 kyu
Two variable simultaneous equations
154 of 155JMurphyWeb
Description:
Given 2 simultaneous equations with 2 variables, find the value of the two variables.
The simultaneous equations will be handed to the function as a 2-d array, the non-zero integer coefficients of the corresponding variables will be in the same order for both of the inner arrays. for example:
x + 2y = 11
//becomes --> [1,2,11]
3x + 5y = 29
//becomes --> [3,5,29]
Your function must return a 1-d array containing the values of the two variables in the order in which they were given in the argument. Solutions of all equations are integers. For the example above:
//should return an array in the form [x,y]
--> [3,4]
Fundamentals
Similar Kata:
Stats:
Created | Aug 27, 2015 |
Published | Sep 1, 2015 |
Warriors Trained | 406 |
Total Skips | 57 |
Total Code Submissions | 465 |
Total Times Completed | 155 |
JavaScript Completions | 154 |
Total Stars | 19 |
% of votes with a positive feedback rating | 90% of 55 |
Total "Very Satisfied" Votes | 46 |
Total "Somewhat Satisfied" Votes | 7 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 17 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 3 kyu |
Lowest Assessed Rank | 8 kyu |