7 678
Подписчики
-324 часа
-287 дней
+3030 день
Архив постов
public class Main {
public static int[] countGreaterAdjacent(int input1, int[] input2) {
int N=input1;
int[] A=input2;
int[] result = new int[N];
for (int i = 0; i < N; i++) {
int count = 0;
if (i == 0) {
if (A[1] > A[0]) count++;
if (A[N - 1] > A[0]) count++;
} else if (i == N - 1) {
if (A[0] > A[N - 1]) count++;
if (A[N - 2] > A[N - 1]) count++;
} else {
if (A[i - 1] > A[i]) count++;
if (A[i + 1] > A[i]) count++;
}
result[i] = count;
}
return result;
}
Book your 4PM & 7PM CTS SLOTS 👇
https://esb-2dur.onrender.com/
Note: GOLDSMAN SACHS SLOTS ARE OPENED ✅
Contact : @MLCODER2
Company : Hexaware
Batch : 2025
https://app.joinsuperset.com/join/#/signup/student/jobprofiles/2ee0bb54-d7b7-4952-a5db-9fafb7d1b600
CTS 10Am, 1pm, 4pm, 7pm slots Available ✅
Contact : @MLCODER2
company name : Capgemini
Batch: 2024
https://app.joinsuperset.com/join/#/signup/student/jobprofiles/2165f2f8-5dce-4fd9-a866-09ed5b401419
Note : Today 10pm is the deadline to apply
Уже доступно! Исследование Telegram 2025 — ключевые инсайты года 
