Lucas
BAN USER
Questions (2)
Comments (4)
Reputation 0
- 0of 0 votes
Answersint match(string input, string pattern)
- Lucas in United States
input= input string
pattern = pattern that we are looking for in a string.
The pattern can contain * wild char which atleast matches 1 char, that is A*B doesnt match AB.
return = index of start of first such sequence .| Report Duplicate | Flag | PURGE
Software Engineer in Test Algorithm - 0of 0 votes
AnswersCount number of instances of pattern in a string.
- Lucas in United States
int CountInstance(string word, string pattern)| Report Duplicate | Flag | PURGE
Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
care to share the psudo code?
- Lucas November 01, 2012