摘要: return nums1.Intersect(nums2); 题意:给定两个数组,编写一个函数来计算它们的交集。 c#可以用linq自带的方法返回,顺便看了下微软的内部实现: private static IEnumerable<TSource> IntersectIterator<TSource> 阅读全文
posted @ 2023-05-09 13:10 vba是最好的语言 阅读(19) 评论(0) 推荐(0) 编辑