Skip to content

Commit ea47d3f

Browse files
committed
SA tweaks
1 parent 3a7b50a commit ea47d3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com/williamfiset/datastructures/suffixarray/SuffixArray.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ public int[] getLcpArray() {
4747
}
4848

4949
// Builds the suffix array by calling the construct() method.
50-
private void buildSuffixArray() {
50+
protected void buildSuffixArray() {
5151
if (constructedSa) return;
5252
construct();
5353
constructedSa = true;
5454
}
5555

5656
// Builds the LCP array by first creating the SA and then running the kasai algorithm.
57-
private void buildLcpArray() {
57+
protected void buildLcpArray() {
5858
if (constructedLcpArray) return;
5959
buildSuffixArray();
6060
kasai();

0 commit comments

Comments
 (0)