i think
we need to form suffix array of the given string with one extra information
tht is frm which index we are considerin suffix
then sort those uffixe pointres
after tht single scan wud do the job
thanks
rajat ahuja

On Wed, Jun 29, 2011 at 10:23 PM, Swathi <chukka.swa...@gmail.com> wrote:

> Write the implementation of isPasswordValid() function which return true if
> the following conditions matches
> 1) If password length is between 5 to 12 characters
> 2) It should be alpha numerics
> 3) There  should not be any consecutive substrings
> ex - ab12abc [valid as there are no consecutive substrings]
> ex - ab12abcabc [not valid as "abc" is consecutive substring].
>
> Can someone provide the pseudo code with the logic..
>
> Thanks,
> Swathi
>
> --
> 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.
>

-- 
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.

Reply via email to