-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOPENME.cs
63 lines (47 loc) · 1.49 KB
/
OPENME.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
Welcome to my C# code exercises.
All were solved without looking at the solutions.
Uncomment to test the ones you want to test.
To uncomment, remove the lines containing * / and * /
2022-05-03
*/
using System;
// Word Counter
/*
using WordCounter;
string inputText = "Lorem ipsum dolor sit amet.";
WordCounter.Program w = new WordCounter.Program();
Console.WriteLine( w.count( inputText ) );
*/
// Mix Two Strings
/*
using MixTwoStrings;
string stringOne="aaaaaaaaaaa";
string stringTwo="BBB";
MixTwoStrings.Program m2s = new MixTwoStrings.Program();
Console.WriteLine( m2s.mix( stringOne, stringTwo ) );
*/
// How Many Occurances
/*
using HowManyOccurances;
string textToBeSearched="the money dont jingle jingle it folds";
string wordToSearch="jingle";
HowManyOccurances.Program hmo = new HowManyOccurances.Program();
Console.WriteLine( hmo.howMany( textToBeSearched, wordToSearch ) );
*/
// Sort Characters Descending
/*
using SortCharactersDescending;
string stringToBeSorted="muvaffakiyetsizlestiricilestiriveremeyebileceklerimizdenmissinizcesiniz";
SortCharactersDescending.Program scd = new SortCharactersDescending.Program();
Console.WriteLine( scd.sort( stringToBeSorted ) );
*/
// Compress String
/*
using CompressString;
string stringToBeCompressed1="kkkktttrrrrrrrrrr";
string stringToBeCompressed2="p555ppp7www";
CompressString.Program cs = new CompressString.Program();
Console.WriteLine( cs.compress( stringToBeCompressed1 ) );
Console.WriteLine( cs.compress( stringToBeCompressed2 ) );
*/