This commit is contained in:
Варвара Карасева 2024-11-06 09:17:20 +04:00
parent e8d91c59d0
commit 5b988e7ee8

View File

@ -300,18 +300,3 @@ void insertElement(int insIndex, int value) {
arr[insIndex] = value;
}
int findLastEven4() {
for (int i = n - 1; i >= 0; i--) {
if (arr[i] % 4 == 0) {
return i;
}
}
return -1;
}
void insertElement4(int insIndex, int value) {
for (int i = n; i > insIndex; i--) {
arr[i] = arr[i-1];
}
n++;
arr[insIndex+1] = value;
}