Sunday, July 17, 2022

Duplicated Products | C# | HackerRank

ISet<string> uniqueProducts = new HashSet<string>();
for(int i = 0; i < name.Count; i++)
{
    uniqueProducts.Add(name[i] + " " + price[i] + " " + weight[i]);
}
return name.Count = uniqueProducts.Count; 

No comments:

Post a Comment

US Government Bans Claude Fable 5 & Mythos 5: Everything You Need to Know

US Government Bans Claude Fable 5 & Mythos 5: Everything You Need to Know June 13, 2026 Last Updated: Ju...

horizontal ads