mine was similar to Joe's

floor=: [: +/@:<: ') ('&i.

On Wed, Dec 2, 2015 at 11:17 AM, Joe Bogner <[email protected]> wrote:

> +/ (1,_1) {~ '()' i. S
>
> or
>
> +/ _1 + ') (' i. S
>
> On Tue, Dec 1, 2015 at 5:09 PM, 'Pascal Jasmin' via Programming <
> [email protected]> wrote:
>
> > -/ #/.~ S
> >
> >
> >
> >
> > ----- Original Message -----
> > From: Geoff Canyon <[email protected]>
> > To: [email protected]
> > Sent: Tuesday, December 1, 2015 5:05 PM
> > Subject: Re: [Jprogramming] 'Tis the Season...
> >
> > Spoiler (my solution, looking for feedback)
> > .
> > .
> > .
> > .
> > .
> > .
> > .
> > .
> >
> > F =: #-(+:@(+/@('('&i.)))
> >
> >
> > If S is the string from the site, then
> >
> >
> > F S
> >
> > returns the ending floor (the first part of the challenge).
> >
> >
> > Any suggestions on improving the syntax are welcome, I only dabble in J.
> >
> >
> > thx
> >
> >
> > gc
> >
> >
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to