Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Coding Puzzle
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 918 of 959
Post > Topic >>

Coding Puzzle

by Charlie-Boo <shymathguy@[EMAIL PROTECTED] > Dec 21, 2007 at 04:55 PM

P()=""  Local array
A  Last value in P() processed i.e. P(A)="" ("" if none so far)
M  Maximum number of values of A i.e. P() to process
 =>
$$F(.P,A,M) = Next value in P() (or "") not processed (up to M values)

So that,

S A="" F  S A=$$F(.P,A,M) Q:A=""  W !,A

lists the first M values in P().

Ex.
P(3)="" and P(5)="" only
A="" , M=0 => $$F(.P,A,M) =""
A="" , M>0 => 3
A=3 , M>1 => 5
A=5 => ""

C -

Who knows of or wants a Coding Puzzles site?!?!  (M, other lang,
generic?)




 1 Posts in Topic:
Coding Puzzle
Charlie-Boo <shymathgu  2007-12-21 16:55:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 22:26:38 CDT 2008.