How to find all possible substring of a given string?

How to find all possible substring of a given string?   public void PossibleString(String x)         {             char[] arr = x.ToCharArray();            ...
Share:

How to reverse a string?

How to reverse a string? public String ReverseAstirng(String x)         {             char[] arr = x.ToCharArray();            ...
Share:

How to count a number of vowels and consonants in a String?

How to count a number of vowels and consonants in a String?    public String CountVowel(String x)         {             x = x.ToLower();            ...
Share:

PRINT Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13, 21

PRINT Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13, 21 The Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13, 21 begins with the numbers 0 and 1 and has the property that each succeeding number is the sum of the two preceding numbers. Using C#, write a nonrecursive function fibonacci(n)...
Share:

How to Find out Given 2 String is anagram or Not ?

How to Find out Given 2 String is anagram or Not Anagram string are those string which character are same in no of sequence For Example Required input and output Input: silent Output: listen Input: Ganga Output: agnga Input: Yahoo Output: hooya Solution: You...
Share:

Popular

Tags