Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
removeDuplicate C#
//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) { string value1 = removeDuplicate("Awaah"); Console.WriteLine(value1); } static string removeDuplicate(string duplicate) { string table = ""; string results = ""; foreach (char value1 in duplicate) { if (table.IndexOf(value1) == -1) { table += value1; results += value1; } } return results; } } }
run
|
edit
|
history
|
help
0
Interface
k
Classes
Interface referance variable
Set Get
Sorting Square Problem
amstrong number
Vajdalinky
BTC sell estimator
Remove duplicates in a linked list