TechToFreedom
Published in

TechToFreedom

5 Ways To Convert Python Integers into Binary Strings

Explained with an algorithm interview question

A heart icon made with binary numbers

Python is easy to learn but hard to master.

Sometimes, even if you are a senior Python developer, there are still some tricks you don’t know.

Last week, a simple algorithm interview question on LeetCode made me stuck for a while:

--

--

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
Yang Zhou

Full-Stack Engineer 🥷| Top Writer🏆 (Over 1.3 Million Views)