[Jprogramming] Data from kaggle competition: packing Santa's sleigh

Ni Bo nicolaeborota at gmail.com
Wed Dec 11 17:11:30 UTC 2013


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


More information about the Programming mailing list