Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Remove Duplicate Ignore Case
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here string[] a = {"a", "b", "c", "b", "A", "C"}; var b = NoDuplicate(a); foreach(string s in b){ System.Console.WriteLine(s); } } public static string[] RemoveDuplicateIgnoreCase(string[] array) { string[] result = new HashSet<string>(array, StringComparer.OrdinalIgnoreCase).ToArray(); return result; } } }
run
|
edit
|
history
|
help
0
Dotnet Q-3
nba
Given a list of numbers and a number k, return whether any two numbers from the list add up to k
q1
simple hello world
ZeroMatrix
salary
Implementing two interfaces with the same method signature
Datediff in c#
TestApp