Hi,

I'm using the data off the kaggle competition to learn some j.

This simple code works for these short strings:
  a=:1 2 3 4 5 6
  b=:14 3 2 5 6 2 1 1 2 3 4 2 3
+/"1 (a=/b)
2 4 3 1 1 1

But if I try it for longer strings #a 250 and #b 1 000 000 I get out of
memory.

Can you please help me with a better way?

Nick
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to