Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
No worries. Your solutions are always nice.🙌
This comment is hidden because it contains spoiler information about the solution
I don't understand the algorithm . Can anybody help?
This comment is hidden because it contains spoiler information about the solution
what is the work of the pointer prev in this answer?
okay.
With no argument your solution will be false. As it is mentioned in kata if no argument present return all elements .
for n = 0 , it will not work as asked in the kata
(in kata it is mentioned that if n = 0 print '\n').
Hii, I think here that second line under the function containAllRots
(if (strcmp(strng, "") == 0) return 1;)
is not required because loop will not start if strng is empty and it will directly return 1;
Really Good.
I first wrote this same solution , but everytime my code was running out of time. I dont know why. so I changed my solution and it worked . I think might be server problem because this solution is more efficient.
sorry , forgot to delete unused variables.
Sorry for j,