Link to the question - https://online.codingblocks.com/player/24941/content/10040/4976
First of all, my answer isn’t complete, I know that. I haven’t yet considered a circular array, but just a simple array, and tried out to find the answer using stacks.
I tried putting the answers into a vector, but it didn’t show any output. https://ide.codingblocks.com/s/83921
Then, everything still being the same, I tried putting the answer into an array, and the output is coming as expected. https://ide.codingblocks.com/s/83922
Can anyone please tell me what’s going wrong with my vector code?
)