当前位置:网站首页>C merge set
C merge set
2022-07-25 19:28:00 【Small target: 100 million】
Code :
List<string> listA = new List<string> { "A", "B", "C", "D", "E" };
List<string> listB = new List<string> { "F", "G", "C", "D", "E" };
// Remove duplication
List<string> ResultA = listA.Union(listB).ToList<string>();
// Keep it all
List<string> ResultB = listA.Concat(listB).ToList<string>();
Console.WriteLine("ResultA:" + JsonConvert.SerializeObject(ResultA));
Console.WriteLine("ResultB:" + JsonConvert.SerializeObject(ResultB));Output :

边栏推荐
- Introduction to web security ICMP testing and defense
- Selenium 设置元素等待的三种方式详解
- 由一个蓝桥杯基础题报时助手而引出的常见误区
- JS basic type reference type deep / shallow clone copy
- 485 current acquisition module dam-8041
- 微信小程序开发之全局配置与页面配置
- Empire CMS whole station | mobile number /qq lianghao mall source code | suitable for mobile terminal
- 小程序毕设作品之微信校园维修报修小程序毕业设计成品(1)开发概要
- How to analyze qiime2 after obtaining picrust2 results
- Solve the problem that the win10 account has no administrator rights
猜你喜欢

微信小程序 26 播放音乐页的完善②

蓝桥杯基础练习——矩阵的回形取数(C语言)

小程序毕设作品之微信校园维修报修小程序毕业设计成品(3)后台功能

Pymoo learning (5): convergence analysis

JS learning notes 17: DOM query exercise

Scala基础【集合01】

二叉树可视化

The second "future Cup" knowledge map championship was officially launched

六轴传感器使用学习记录

Talk about 11 tips for interface performance optimization
随机推荐
Fearless of high temperature and rainstorm, how can Youfu network protect you from worry?
国内常见php的CMS建站系统情况分析
ML的编程技巧:
QIIME2得到PICRUSt2结果后如何分析
新瓶装老酒--近期APT32(海莲花)组织攻击活动样本分析
Heavy! The new book "deep learning in geometry" was released, which was jointly written by imperial Institute of technology /deepmind and other figures ml Daniel. The 160 page PDF expounds the basic p
Basic practice of Blue Bridge Cup - shape retrieval of matrix (C language)
Security foundation 6 - vulnerability recurrence
聊聊sql优化的15个小技巧
Improvement of wechat applet 29 hot search list ②
Clip can also do segmentation tasks? The University of Gottingen proposed a model clipseg that uses text and image prompt and can do three segmentation tasks at the same time, squeezing out the clip a
Talk about 11 tips for interface performance optimization
网络数据包多层传输演示
Wechat campus maintenance and repair application applet graduation design finished product of applet completion work (6) opening defense ppt
The degree of interval of basic music theory
C# 合并集合
鸿蒙-大喵计算画板-简介
GBASE 8s UDR内存管理_01_mi_alloc
balanced binary tree
Wechat campus maintenance and repair applet graduation design finished product of applet completion work (4) opening report