leetcode 8 String to Integer (atoi)
#include<iostream>
#include<string>
#define INT_MAX 2147483647
#define INT_MIN (-INT_MAX - 1)
using namespace std;
class Solution {
public:
int myAtoi(string str) {
//str = trim(s...
转载
2019-07-28 20:46:11 ·
89 阅读 ·
0 评论