Very interesting solutions. I was in the direction of using dunder methods but could not figure out how. Haven’t heard of the __class_getitem__
. The second solution is especially inspiring.
Very interesting solutions. I was in the direction of using dunder methods but could not figure out how. Haven’t heard of the __class_getitem__
. The second solution is especially inspiring.
Gave some thoughts but couldn’t find any. I need the solutions
But then you still need to use parentheses to decode it