instead of switch case we can use degrees adding 90/subtracting 90 and just for boundary case we can do %360 that would decrease the code to some extend.
@CodeWithSunchitDudeja2 жыл бұрын
I agree the code can be simplified
@praveenj31122 жыл бұрын
Great, thanks for making this video over weekend . appreciate your time and dedication . PS consistency is key 😀
@CodeWithSunchitDudeja2 жыл бұрын
My pleasure!
@madhumitasuman4812 жыл бұрын
can we strore the instructions in stack, and then check with the peek value, and increment the co-ordinate based on direction..