(String s)
| 6 | SuffixTreeNode root = new SuffixTreeNode(); |
| 7 | |
| 8 | public SuffixTree(String s) { |
| 9 | for (int i = 0; i < s.length(); i++) { |
| 10 | String suffix = s.substring(i); |
| 11 | root.insertString(suffix, i); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | public ArrayList<Integer> search(String s) { |
| 16 | return root.search(s); |
nothing calls this directly
no test coverage detected