Please have a look at this : http://www.careercup.com/question?id=14433699&utm_source=feedburner&utm_medium=email&utm_campaign=Feed%3A+Careercup+%28CareerCup%29
What does inplace shifting imply here? Cant i keep 2 pointers and overwrite a non space character onto a space character and advance both pointers till one again hits a space character and other a non-space character? Does that violate the condition given in the question? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.