Skip to content

yankouskia/quadratic-equation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quadratic equation

Recall school math!

Task

Your task is to implement solveEquation function, wihch solves Quadratic equation. Each equality has exact 2 integer solutions. Return those numbers as ordered array.

Example:

  const solutions = solveEquation('2 * x^2 - 10 * x + 12');
  console.log(solutions); // [2, 3]

Write your code in `src/index.js. Be sure, that all tests are positive. That means you cannot catch any error in tests.

Prepare and test

  • Install Node.js
  • Clone this repository: git clone https://github.com/yankouskia/quadratic-equation.git
  • Go to folder quadratic-equation
  • Run npm install in command line
  • Run npm test in command line
  • You will see the number of passing and failing tests

About

Recall school math!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published