make intersection faster 🚀

This commit is contained in:
Emanuel Rodriguez 2023-08-08 23:03:34 -07:00
parent 7bdaa33236
commit b12a36f536
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}
}