Write a program to convert number to word For example:467Four hundred sixty seven 2321Two thousand three hundred twenty one Solution: Continue reading Convert number to word
Write a C# program to count the number of lines present in HTML. as HTML create a new line using “<br>” tag so will find the “<br>” tag in HTML string to count the lines. Solution: Continue reading Count Lines from HTML string.
Given a string count the number of Count Vowels and consonants in a string. alphabets letters ‘a’, ‘e’, ‘i’, ‘o’, ‘u’ are the vowels and remaining all alphabets letters are consonants. Solution: Continue reading Count Vowels and consonants from a string
Given a string append char padding to the given string. Solution: We can easily append char by using String.PadLeft Method which return a new string instance by padding them on the left with a specified Unicode character, for a specified total length. Similarly fashion String.PadRight to append padding at right. Continue reading String Padding
C# Program to Reverse a String without using any in-build function by changing the position of charters from right to left one by one. Solution: Continue reading Reverse string without using any in-build function
What does the following code display? Continue reading String Concatenate
Question: You are given a string containing characters and only. Your task is to change it into a string such that there are no matching adjacent characters. To do this, you can delete zero or more characters in the string. Your task is to find the minimum number of required deletions. For example, given the string s=AABAAB, remove an A at positions 0 and 3 … Continue reading Alternating Characters – HackerRank Problem Solution