包含cvte,bigo,老虎,网易,拼夕夕等 简介: 以个人面试时间为顺序,尽可能还原面试问题。 8.19 腾讯提前批 客户端开发 手撕kmp算法 给定一个字符串数组,和一个子串,求字符串中是否存在子串,如果存在则返回首个匹配到的索引位置,否则,返回-1。不能调用库函数。例如: 字符串数组:“Integrity Procative Collaboration Innovation” 子串:”tegri” 返回:2 int IndexOfSubstr(const char* const raw_str, const char* const sub_str) {...