C++ || Two-Pointers || Easy
\nint maxDistance(vector<int>& nums1, vector<int>& nums2) {\n        int i=0,j=0,m=0;\n        while(i<nums1.size() && j<nums2.size()){\n            if(nums1[i]
```\nint maxDistance(vector<int>& nums1, vector<int>& nums2) {\n        int i=0,j=0,m=0;\n        while(i<nums1.size() && j<nums2.size()){\n            if(nums1[i]<=nums2[j]){\n                m=max(m,j-i);\n                j++;\n            }\n            else if(nums1[i]>nums2[j]){\n                i++;\n                while(i>j)\n                    j++;      \n            }\n        }\n        return m;\n```\t\t\n\t\t\n
['Two Pointers', 'C']