Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
How to count the occurrence of each character in a string?
//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) { //How to count the occurrence of each character in a string? //Builin array functions and LINQ are not allowed. Console.WriteLine("Start here..."); } } }
run
|
edit
|
history
|
help
0
list
constructortest
any predicate test
convert a string of numbers to a list then use a forEach to loop through the list
Side 1
Overloading Unary operator ~ (to reverse the string)
HashItUp
remove duplicates
world
Switch on String