Martin is a commander in the army. An undercover agent shares some secret information with him. The secret information: consists of a text and the name of a terrorist With the given information Martin needs to find the number of terrorists who are going to attack the army base. The agent gave Martin a hint that the number of terrorists is the number of times the terrorists name occurs in the text.
Write an algorithm to help Maan find the number of terrorists who are going to attack the army base.
Comments
Leave a comment