Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Write a program to count the occurrence of each distinct item in the 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) { //array = [1,4,2,5,4,2,5,1,6,2,5,3,8,9,6] //Write a program to count the occurrence of each distinct item in the array? //Builin array functions and LINQ not allowed. Console.WriteLine("Hello, world!"); } } }
run
|
edit
|
history
|
help
0
Primes
Ranges thing
Dotnetq5
qwerty
Hello world
temp_with_pow
tablecsv
Order of Ops 6.5 (added brackets)
Making Anagrams-Final
Weird behaiour of conditional operator