My solution gives correct output but is it correct in sense of time and space coplexity? compare to the gfg solution
Here i s my solution:
Here is expected gfg solution:
My solution gives correct output but is it correct in sense of time and space coplexity? compare to the gfg solution
Here i s my solution:
Here is expected gfg solution:
Hey @tasfikrahman007
Yes your solution is good ,even better than gfg solution in terms of time .
But using more space.
You can say your solution is better in terms of time whereas gfg on was better in terms of memory.