8-string-to-integer-atoi

DevGod
Vtuber
class Solution { public int myAtoi(final String s) { Integer val = new Integer(s.trim()); return val; }}
/** * @param {string} s * @return {number} */var myAtoi = function(s) { return Math.max(Math.min(parseInt(s) || 0, 2**31-1), -(2**31))};