Time Complexi of mystrtok in video

Time Complexi of mystrtok in video

It will be o(n) where n is length of string in worst case

how?
please elaborate it will be helpful i cant figure it out how it will be o(n) please help

See it like this u gave a string of length n to mystrtok and it does not contain a space
so it will traverse the whole string
and then return u that string

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.