make intersection faster 🚀
This commit is contained in:
parent
7bdaa33236
commit
b12a36f536
|
@ -48,6 +48,7 @@ ArrayList *intersection(int left[], int right[], int left_len, int right_len) {
|
|||
for (int j = 0; j < right_len; j++) {
|
||||
if (left[i] == right[j]) {
|
||||
push(arr, left[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue