Skip to content

Latest commit

 

History

History

227

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Solution

  • Dfs the string and split by operation
    • It's similar to the subsequent traversal of a binary tree
    • 1st: split by '+' and '-'
    • 2nd: split by '*' and '/'
    • 3rd: calculate the value of substring