Reading Raul's answer I see that mine was wrong
because I misread the problem regarding the case
for duplicates.

Also, other's solutions are much more clever than
my approach.

> Working on your question rather than your problem (I do not play
> cribbage and do not have time to learn its rules), but noting that
> your arguments tend to be short:
>
>   rlen=: [:>./[:,/((#,[EMAIL PROTECTED]) * >:@}: *./@:>: }.)\.\
>   rlen 2 4 5 6 12
> 3 3
>   rlen 1 2 3 4 5 6
> 6 6
>   rlen 1 12 13 13 14
> 4 3
>

-- 
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to