![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 08.06.2021 16:30 annabanana1298
Searching for the number of substrings in a given text that start with the letter A and end with the letter B. For example, in the DABAAKBSA text, there are 4 substrings that begin with the letter A and end with the letter B.
a) Design a brute-force algorithm that performs the desired operation above and implement it in c language. Let the searched text be entered by the user.
b) Calculate the time complexity of the algorithm you designed.
c) Design an algorithm that is more efficient than the brute-force algorithm and implement it in c language. Let the searched text be entered by the user.
d) Calculate the time complexity of the algorithm you designed and compare it with the brute-force algorithm.
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:30
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
You know the right answer?
Searching for the number of substrings in a given text that start with the letter A and end with the...
Questions
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.11.2020 21:20
![question](/tpl/images/cats/istoriya.png)
History, 11.11.2020 21:20
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/en.png)
English, 11.11.2020 21:20
![question](/tpl/images/cats/ekonomika.png)
Business, 11.11.2020 21:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.11.2020 21:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/geografiya.png)