A case of "Scientific notation" is a bad case?


  • 1
    L

    this problem should add this kind of scientific notation case: "-1000e2" or "1000e-2", and cannot treat these cases as bad case.

    this is one test case from this problem, it is not right.
    Input: " -115579378e25"
    Expected: -115579378


  • 1
    R

    I think the question compares the solution implementation with the atoi implemention in language C/C++. If C/C++ implementation handles scientifc notation (which I doubt it does) then only the solution is supposed to handle such a case.


Log in to reply
 

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