Comments
On iez → Self made problem help, 17 months ago
0

the difficulty of this problem could change depending on whether the array is a permutation or not. A permutation is a more friendly one

0

That's true. Thanks :).

0

Oh yeah 😂 I forgot it's python 🥲.

0

Shorter solution for problem B

Code

You can avoid that by using string keys or tuple keys. those work better than integer keys.