1 | static int indexOfSubListIC(L<S> x, L<S> y) {
|
2 | ret indexOfSubListIC(x, y, 0); |
3 | } |
4 | |
5 | static int indexOfSubListIC(L<S> x, L<S> y, int i) {
|
6 | outer: for (; i+l(y) <= l(x); i++) {
|
7 | for (int j = 0; j < l(y); j++) |
8 | if (neqic(x.get(i+j), y.get(j))) |
9 | continue outer; |
10 | ret i; |
11 | } |
12 | ret -1; |
13 | } |
Began life as a copy of #1002135
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020304 |
| Snippet name: | indexOfSubListIC |
| Eternal ID of this version: | #1020304/1 |
| Text MD5: | 6182c265c7df36c6374b6a6f75879013 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-13 16:32:41 |
| Source code size: | 310 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 567 / 597 |
| Referenced in: | [show references] |