India’s Best Job Seekers and Training Platform Forums Data Structure Design and implement a calculator that can …

  • Design and implement a calculator that can …

     Akash  updated 10 months, 2 weeks ago 1 Member · 1 Post
  • Akash 

    Administrator
    at

    Design and implement a calculator that can calculate expressions like:
    + 2 4
    * 8 ( + 7 12)
    ( + 7 ( * 8 12 ) ( * 2 (+ 9 4) 7 ) 3 )
    (PS:all items are space delimetered.)
    Example answers
    + 2 4 => 2 + 4 = 6
    * 8 ( + 7 12) => 8 * ( 7 + 12 ) = 152
    ( + 7 ( * 8 12 ) ( * 2 (+ 9 4) 7 ) 3 ) => 7+8*12+2*(9+4)*7+3 = 148

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 21st September 2020. Attend one week free demo classes.Register Now

New Report

Close