+ 3
Challenge: Write a Code to find the number of words in an input string đ€đ€
Example string: "I got a long way to go And a long memory, I have been searching for an answer Always just out of reach, Blood on the floor Sirens repeat I have been searching for the courage To face my enemies, When they turn down the lights I hear my battle symphony, All the world in front of me If my armor breaks I will fuse it back, together battle symphony." This string has 70 words.. So, your output may be like this: Number of words in input string = 70 Code may be in any language you prefer.
2 Answers
+ 4
Here is my own try...
https://code.sololearn.com/cm2B62Jf6HyS/?ref=app
+ 3
Also find the frequency of a particular word in the input string.
Take input a particular word like "battle"
and find how many times it has been repeated in the above string.
Your output may be like this:
Frequency of battle in input string = 2