Division truncate toward zero [mp]
Micro pattern¶
Description¶
Handle signed division explicitly because Python floor division rounds negative results toward negative infinity.
Problems¶
- 29. Divide Two Integers (Top Medium)
- 150. Evaluate Reverse Polish Notation (Top Medium)
- 227. Basic Calculator II (Top Hard)