欧美1区2区3区激情无套,两个女人互添下身视频在线观看,久久av无码精品人妻系列,久久精品噜噜噜成人,末发育娇小性色xxxx

陳樂(lè)樂(lè)happy level
獲贊
105
粉絲
15
關(guān)注
2
看過(guò) TA
282
深圳大學(xué)
2023
Java
IP屬地:廣東
暫未填寫(xiě)個(gè)人簡(jiǎn)介
私信
關(guān)注
2021-03-28 20:01
已編輯
深圳大學(xué) Java
包含cvte,bigo,老虎,網(wǎng)易,拼夕夕等 簡(jiǎn)介: 以個(gè)人面試時(shí)間為順序,盡可能還原面試問(wèn)題。 8.19 騰訊提前批 客戶端開(kāi)發(fā) 手撕kmp算法 給定一個(gè)字符串?dāng)?shù)組,和一個(gè)子串,求字符串中是否存在子串,如果存在則返回首個(gè)匹配到的索引位置,否則,返回-1。不能調(diào)用庫(kù)函數(shù)。例如: 字符串?dāng)?shù)組:“Integrity Procative Collaboration Innovation” 子串:”tegri” 返回:2 int IndexOfSubstr(const char* const raw_str, const char* const sub_str) {...
陳樂(lè)樂(lè)happy://kmp int?IndexOfSubstr(const?char*?const?raw_str,?const?char*?const?sub_str) { int?sublength?=?0; for?(int?i?=?0;?sub_str[i]?!=?'\0';?i++) { sublength++; } vector<int>?next(sublength,?0); int?i?=?1; int?j?=?0; while?(sub_str[i]?!=?'\0') { if?(sub_str[i]?==?sub_str[j]) { next[i]?=?j?+?1; i++; j++; } else { if?(j?!=?0) { j?=?next[j?-?1]; } else { next[i]?=?0; i++; } } } i?=?0; j?=?0; while?(sub_str[j]?!=?'\0'&&raw_str[i]?!=?'0') { if?(sub_str[j]?==?raw_str[i]) { j++; i++; } else { if?(j?!=?0) j?=?next[j?-?1]; else i++; } } if?(sub_str[j]?==?'\0') { return?i?-?j; } else return?-1; }
投遞微軟等公司10個(gè)崗位 >
0 點(diǎn)贊 評(píng)論 收藏
分享

創(chuàng)作者周榜

更多
關(guān)注他的用戶也關(guān)注了:
??途W(wǎng)
??推髽I(yè)服務(wù)