2 commit
This commit is contained in:
parent
e8d91c59d0
commit
5b988e7ee8
15
Source.cpp
15
Source.cpp
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user