双指针解决 class Solution {public: double findMedianSortedArrays(int A[], int m, int B[], int n) { int p1 = 0, p2 = 0; int left = -1, right = -1; for (int i = 0; i < (m + n) / 2 + 1; i ++){ left = right; // p2 右移n if (p1 >= m || p2 < n &am...