what's q then? can you please give few more examples? On Thursday, 19 April 2012 23:02:31 UTC+5:30, tech coder wrote: > > determine whether the given string is of form pZq. > p and q can contain only X and Y. > like if p=XXYX then z will be XYXX > for ex XXYXXXYXX is valid > > the limitation is that "you can read only the next character at each > point" . > -- > > Regards > "The Coder" > >
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/XQCzNOIeoUUJ. 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.