in this String Tokenizer Function on camelcase
it says add space and then use strtok but how can i add space to it?
Can u read stirng
what should be the approach for that
@jatinupadhyay786 this is a very expensive operation though…
You can alternatively try this approach
print characters normally, if you come across an uppercase character, print a newline character before printing that
This should also work and it is better in terms or space and time complexity
or can i print -? instead of newline character?
@jatinupadhyay786 the question requires you to print all the words in separate lines, if you print a hyphen instead, your output will not match with the expected output and code will not get accepted
another different aprroach i tried that is given in the soln is https://ide.codingblocks.com/s/250868
its getting compiled but still not showing output
@jatinupadhyay786 the approach that i mentioned is quite simple, please have a look https://ide.codingblocks.com/s/251054