Also, from the transposed matrix mT:
>>>list(map(operator.methodcaller('reverse'), mT))
does it inplace.
any tips on how to learn algorithms and data structures?
Step 1 take transpose
Step 2 reverse row
matrix = list(map(list, map(reversed, zip(*matrix))))
TCS question
@@ARkhan-xw8ud bro I am sorry for Mis typed but this question was asked in TCS 2023 September and there is sort colors problem on leetcode that same question was asked too as passenger luggage risk problem
I love this series. Helps in understanding DSA a bit optimized way.