Again, someone hacked my B solution coz of the Python Dictionary (this can happen also when using CPP unordered_map)
But I noticed that it can be done using an array because the constraint bi <= k which will allow to avoid Py dict
So, I wonder did the problem setter put this constraint for Python users to be able to solve it also in Python as they can avoid dictionary because of it, or the constraint exists for any other reason?