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 11月 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 6月 2023, 05:54
Janice Ward welcome to the group. To learn how to crack coding exams
06 1月 2023, 21:37
check answers in answer group, your images are not clear
12 3月 2022, 23:54
Sabine Aigner welcome to the group. To learn how to crack coding exams
02 11月 2022, 21:58
Good welcome to the group. To learn how to crack coding exams
28 1月 2023, 20:44

