String to Integer (AtoI - ASCII to Integer) | Algorithms
Objective: Implement atoi, which converts string to integer. Rules for converting string to integer. If string is null or empty, Integer will be 0. First character of string may represent the sign of the integer. '+' or '-' Example: Input String: 1234 Converted Integer: 1234, Input String: -03056 Converted Integer: -3056