make intersection faster 🚀

This commit is contained in:
2023-08-08 23:03:34 -07:00
parent 7bdaa33236
commit b12a36f536

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