Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
SquareRealMatrixWithMathJax
Encode URl C#
C# interview question. Closure pitfalls.
async example with HttpClient
MergeSort
Collatz Conjecture Using Pi
codeWall
patient portal
Intuit // C# // listing_4.5 (Math. /Pow /Sin)
Bubble Sort
Please log in to post a comment.