kamyu104 / LeetCode-Solutions

🏋️ Python / Modern C++ Solutions of All 3343 LeetCode Problems (Weekly Update)
MIT License
4.72k stars 1.56k forks source link

Update maximum-score-from-performing-multiplication-operations.py #164

Closed ghost closed 7 months ago

ghost commented 2 years ago

The Python "NameError: name 'xrange' is not defined" when we use the xrange() function in a Python 3 codebase. To solve the error, use the range() function instead, because xrange was renamed to range in Python 3.