By not allowing shifting , I guess they mean that you cannot shorten the overall length of the string . Eg . "ab c" the output should not be obtained by shifting c to the 3rd postion in the array.
On Wed, Aug 1, 2012 at 10:08 AM, Sambhavna Singh <coolsambha...@gmail.com>wrote: > 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. > -- - - - - - - - - - - - - With Regards Daksh Talwar -- 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.