Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Distinct linq not used
//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) { //Write a program to filter distinct items from the array //array = [1,4,2,5,4,2,5,1,6,2,5,3,8,9,6] //Builtin array functions and LINQ are not allowed. int []array = {1,4,2,5,4,2,5,1,6,2,5,3,8,9,6}; for(int i = 0 ; i < array.Length ;i++ ) { int j; for(j =0 ; j<i ; j++) { if(array[i]==array[j]) { break; } } if(i==j) { Console.WriteLine(array[i]); } } } } }
run
|
edit
|
history
|
help
0
Метод catch b try в словарях
adxsdf
world
Gestion de stock
https://www.usgatmtu.mtu.edu/profile/watch-the-bad-guys-online-streaming/profile
Fórum ➡ Prime numbers implemented using LINQ statements AND using FOR loop ♦
filter distinct items from the array without builtin function - Seeni
asxsdxsd
Binary search, IComparer, in lambda expressions style
C# Events and Delegates example