Need to remove duplicate values from C# program

前端 未结 5 1654
南方客
南方客 2020-12-22 07:49

I need some help with a C# program that i am creating. So in this scenario i am inputting duplicate values into the program. For Example, a,b,b,c,c.
The exercise is that

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-22 08:03

    Choose right data structure at beginning, use HashSet instead of array since the operations are mainly looking up & inserting.

提交回复
热议问题