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

Stats:

CreatedAug 27, 2015
PublishedSep 1, 2015
Warriors Trained406
Total Skips57
Total Code Submissions465
Total Times Completed155
JavaScript Completions154
Total Stars19
% of votes with a positive feedback rating90% of 55
Total "Very Satisfied" Votes46
Total "Somewhat Satisfied" Votes7
Total "Not Satisfied" Votes2
Total Rank Assessments17
Average Assessed Rank
6 kyu
Highest Assessed Rank
3 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • JMurphyWeb Avatar
  • myjinxin2015 Avatar
Ad