private void IsPalindromeDemoButton_Click(object sender, RoutedEventArgs e)
        {
            string str = "123454321";

            bool result = StringAlgorithms.IsPalindromeString(str);

            MessageBox.Show("Is given string  '" + str + "' is Palindrome " + result);
        }
Esempio n. 2
0
 public static void Main(string[] args)
 {
     Console.WriteLine(StringAlgorithms.RemoveDuplicateChars("Csharpstar"));
     Console.WriteLine(StringAlgorithms.RemoveDuplicateChars("Google"));
     Console.WriteLine(StringAlgorithms.RemoveDuplicateChars("Yahoo"));
     Console.WriteLine(StringAlgorithms.RemoveDuplicateChars("CNN"));
     Console.WriteLine(StringAlgorithms.RemoveDuplicateChars("Line1\\nLine2\\nLine3"));
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            //StringAlgorithms.Remove_Duplicate_Characters();
            //StringAlgorithms.Check_Whether_Two_Strings_Are_Anagrams_Of_Each_Other();
            //StringAlgorithms.Reverse_String_Using_Iteration();
            //StringAlgorithms.Count_Words_In_String();
            StringAlgorithms.Palindrome();

            Console.ReadKey();
        }
 private void KMPDemoButton_Click(object sender, RoutedEventArgs e)
 {
     StringAlgorithms.RunKnuthMorrisPrattSearchDemo();
 }
 private void PermutationCombinationsDemoButton_Click(object sender, RoutedEventArgs e)
 {
     StringAlgorithms.StringPermutationsTest();
 }
 private void ReverseWrodsInStringDemoButton_Click(object sender, RoutedEventArgs e)
 {
     StringAlgorithms.LongestSubStringWithoutRepeatingCharacters();
     StringAlgorithms.ReverseWordsInString();
 }