keon / algorithms

Minimal examples of data structures and algorithms in Python
MIT License
23.76k stars 4.59k forks source link

Fix remove_duplicates function to handle binary values #918

Open ca20110820 opened 2 months ago

ca20110820 commented 2 months ago

This PR addresses an issue (originally found in unit test run) where the binary values for 1 and True (0 and False) are treated equally for this function.

Changes