#include "array.hpp"
#include "hashmap.hpp"
#include "string.hpp"
Go to the source code of this file.
◆ CONCRETE_CODE()
◆ get_longest_common()
void get_longest_common |
( |
string | s1, |
|
|
string | s2, |
|
|
int & | b1, |
|
|
int & | e1, |
|
|
int & | b2, |
|
|
int & | e2 ) |
Definition at line 31 of file fast_search.cpp.
125 {
126
131 for (
int i=
min (
N (
ss1->a),
N (
ss2->a)) - 1; i >= 0; i--) {
135 while (
it->busy ()) {
139 if (
N (
ps1) == 0 ||
N (
ps2) == 0)
continue;
149 }
153 }
161 }
162 }
163 }
164 }
165 }
166}
int N(array< T > a)
Get the length of the array.
The list class represents a linked list.
iterator< T > iterate(hashmap< T, U > h)
Generates an iterator for a container of type hashmap<T, U>.
SI min(SI i, SI j)
Returns the minimum of two signed integers.