The intersection of two sorted arrays

后端 未结 8 1471
臣服心动
臣服心动 2020-11-29 02:21

Given two sorted arrays: A and B. The size of array A is La and the size of array B is Lb. How

8条回答
  •  情歌与酒
    2020-11-29 02:55

    Use set_intersection as here. The usual implementation would work similar to the merge part of merge-sort algorithm.

提交回复
热议问题