Day 12 | Write a python program to print numbers in decreasing order of their occurrences

Опубликовано: 05 Август 2026
на канале: CloudyML
1,302
15

Write a python program to print numbers in increasing order of their occurrences in an array.

Also if two numbers have same occurrences then print the higher number first.

Ex. Input=[1,2,2,1,3]
Output= 2 1 3

Post link:   / akashraj001_day-12-l-data-science-intervie...  

Code link: https://github.com/akashraj001/cloudy...

Join our "AI for All" Assignment Driven Course:

Our 25+ Assignments includes concepts covering all important concepts of Python, Machine Learning, Statistics and SQL, which are used in Industry.

Key offerings:

1. Assignment mode from Day 1.
2. YouTube Content links.
3. Mentors to resolve Assignment queries.
4. Tracking of learner's progress and constant push to complete assignments on time.
5. Course Completion certificate.

Course link: https://www.cloudyml.com/ai4all/
Discount link for YouTube users: https://bit.ly/ai4all-youtube-discount

Discounted Course link: https://www.cloudyml.com/ai-for-all-d...

Key Offerings by AI for All:
1. Nicely curated questions in assignments to cover all important topics of Python, ML, SQL, Statistics and AWS Sagemaker Deployment.
2. Mentors available from 10am to 10pm everyday to resolve assignment related queries.
3. Content(YouTube videos and blogs) collection in structured way to learn all the concepts.
4. Lifetime Access to Assignments and Content collections.
5. Learners tracking and reminders for continuous learnings.
6. Self paced courses.
7. No prior coding experience required.
8. Interview Questions & Answers
9. 10+ Data Science projects that you can put in Resume.
10. Course Completion Certificate.