Java programming for beginners
Открыть в Telegram
Learn java programming through quizzes and videos
БольшеСтрана не указанаКатегория не указана
2 941
Подписчики
Нет данных24 часа
Нет данных7 дней
Нет данных30 дней
Архив постов
Alabi Hanif welcome to the group. To learn how to crack coding exams
10 нояб. 2022, 06:31
// frequency of occurance int a[] = { 1, 2, 2, 4, 1, 5, 4, 6, 1 }; // 1, 2, 4
for (int i = 0; i < a.length; i++) {
int cnt = 1; for (int j = i + 1; j < a.length; j++) {
if (a[i] == a[j]) { cnt++;
a[j] = 0; // mark should not repeated }
} if (a[i] != 0) // unmark id's only
System.out.println(a[i] + " : " + cnt); }
25 июня 2023, 05:54
Janice Ward welcome to the group. To learn how to crack coding exams
06 янв. 2023, 21:37
check answers in answer group, your images are not clear
12 мар. 2022, 23:54
Sabine Aigner welcome to the group. To learn how to crack coding exams
02 нояб. 2022, 21:58
Good welcome to the group. To learn how to crack coding exams
28 янв. 2023, 20:44

