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

