I need help with my problem. I have an array of strings which is string * A
.
A = { dog, doom, dorm, dunk, face, fall, falafel, fart }
I need to check how many string "d" in the array which is 4.
I need to check how many string "do" in the array which is 3.
I was to use binary search to find it. My problem is how do I access part of the string in the array and be able to compare it with another string?