Given a 2D matrix matrix, handle multiple queries of the following types:
matrix
Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++'s atoi function).
myAtoi(string s)
atoi
The algorithm for myAtoi(string s) is as follows:
Given a string s and an integer k, return the length of the longest substring of s such that the frequency of each character in this substring is greater than or equal to k.
s
k