Home  >  Q&A  >  body text

javascript - An algorithm question in front-end interview

Today, there is an interview in the afternoon. During the second interview, there was an algorithm question. I don’t know anything about algorithms. Please ask someone to help me.

The topic is to implement a function for calculating addition, subtraction, multiplication and division of parentheses. The input string is similar to (1 2)/4 5 (3 5)*3. Similar legal operations
Can you explain the general idea a little bit? The interviewer said earnestly that this was an algorithm question. I don’t think it should be an implementation of eval(), right?

给我你的怀抱给我你的怀抱2711 days ago1397

reply all(11)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-19 10:29:19

    Isn’t this just an expression?

    reply
    0
  • Cancelreply