Java programming for beginners
Open in Telegram
Learn java programming through quizzes and videos
Show moreThe country is not specifiedThe category is not specified
2 941
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
Alabi Hanif welcome to the group. To learn how to crack coding exams
10 Nov 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 Jun 2023, 05:54
Janice Ward welcome to the group. To learn how to crack coding exams
06 Jan 2023, 21:37
check answers in answer group, your images are not clear
12 Mar 2022, 23:54
Sabine Aigner welcome to the group. To learn how to crack coding exams
02 Nov 2022, 21:58
Good welcome to the group. To learn how to crack coding exams
28 Jan 2023, 20:44

