Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Interview Question : Write an efficient string matching program for string matching?

Write a time efficient C program that takes two strings (string a, string b) and gives the first occurence of string b in string a.

like image 349
siva Avatar asked Aug 07 '26 03:08

siva


1 Answers

Many algorithm is on string matching. For example,Knuth–Morris–Pratt algorithm, Boyer-Moore algorithm. Just refer to any one algorithm handbook.

like image 141
cnhk Avatar answered Aug 08 '26 19:08

cnhk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!