Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Distinct of the given array
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int[] arr = {1,4,2,5,4,2,5,1,6,2,5,3,8,9,6 }; for (int i = 0; i < arr.Length; i++) { int j; for (j = 0; j < i; j++) if (arr[i] == arr[j]) break; if (i == j) Console.WriteLine(arr[i] + " "); } } } }
run
|
edit
|
history
|
help
0
SpawnController
sdfrgthyuyt dsxcsd
database exterior 0.1
Problem Name: single_digit
Метод catch b try в словарях
Caelum
C# Bubble Sort
ConcurrentStack<T>
SortedDictionary : Add と foreach
calc