Open in app
Mohammed Ayar
323 Followers
About

Sign in

323 Followers
About
Open in app
Mohammed Ayar

Mohammed Ayar

·Dec 21, 2020

For those of you who suggested that swapping key value pairs is a better option. I am afraid to say that you still have to iterate through the dictionnary twice. The process should be something like this:

1 st iteration: convert salaries to numerical values.

2nd iteration : swapping

Finally, access the max value of the swapped dictionnary

I hope this could help.

You Should Stop Craving for Python One-Liners
142
6

Mohammed Ayar

More from Mohammed Ayar

Engineer | AI Enthusiast | Content Writer | Voracious Reader

More From Medium

The Slowest Modern Programming Languages

Mohammed Ayar in Better Programming

Why Some Senior Developers Don’t Like Python

Mohammed Ayar in Better Programming

Mastering Data Science Through Online Courses Is a Mirage

Mohammed Ayar in Better Programming

You Should Stop Craving for Python One-Liners

Mohammed Ayar in Towards Data Science

Python Alone Won’t Get You a Data Science Job

Mohammed Ayar in Towards Data Science

How to Read Advanced Code Even If You Are a Beginner

Mohammed Ayar in Towards Data Science

This is What Data Scientists are Undergoing in 2020

Mohammed Ayar in Towards Data Science

This Illiterate Went From a Starving Shepherd to a Man of $3 Billion

Mohammed Ayar in DataDrivenInvestor

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store