Brainwave
Published in

Brainwave

Sort Integers by The Number of 1 Bits With Python and Rust

Solving a leetcode problem comparing runtime and memory usage

When I was coding with Rust to solve this problem, I thought I was dealing with memory so harshly and also thought that time will not be very optimized.

Until I saw this:

--

--

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