/clipboardTest

Test for javascript interview

Primary LanguageJavaScript

Javascript test for job interview,

This script read a csv or tsv file and evaluate the mathematical expression without using eval() function. We use reverse polish notation to evaluate and Shunting-yard algorithm to create the rpn.

Install

  • Run npm install in the project directory.

Execution

  • Run node evaluate.js input.csv in the project directory.
  • output.csv (or .tsv) contains the results.