摘要:
Backtracking | (Rat in a Maze) Description: A Maze is given as N N binary matrix of blocks where source block is the upper left most block i.e., maze[ 阅读全文
摘要:
该函数用于判断needle是否为haystack的子串,如果是,则返回needle在haystack中首次出现的索引。如果不存在,返回 1。 int strstr(string haystack, string needle) { int h = haystack.size(); int n = n 阅读全文