Wrong test cases?


  • 0
    J

    "-3.3" returns -3?
    "3a3" returns 3?
    "9/2" returns 9?


  • 0
    N

    In an interview you would be able to ask for the requirements, but since you can't you kind of have to look at the spoilers for this problem, otherwise they're too vague. Each one of the test cases you posted looks correct per the requirements in the spoilers..


  • 0
    J

    Yep, you are right. I didn't notice the spoilers. Thanks.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.