Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [j]

J is a high-level, general-purpose, high-performance array programming language.

1
vote
1answer
39 views

Parsing fixed-width format with J

I have a fixed-width input format. The widths are known to me. Suppose I am told that the first field is 20 characters, the second is 10, the third is 12. The total width of a row should therefore be ...
1
vote
0answers
241 views

Mars Rover problem in J

I've written an implementation of the "famous" Mars Rover simulation, (another question on this) whose problem statement is this: The first line of input is the upper-right coordinates of the ...
4
votes
1answer
81 views

A clean tacit version of (n choose k) in J

Listing all \$\binom{n}{k}\$ combinations of i is a well-solved problem in J. From that article, there is this implementation: ...
1
vote
1answer
61 views

ASCII triangle in J

I've been doing code golf puzzles to improve my J. I'd appreciate any feedback on my solution to this problem. The task is to take an integer and produce an ascii triangle as follows: ...
6
votes
1answer
62 views

Summative Pattern

While playing around with J (link), I found that you can create a sequence of shape N0 N1 ... NK with i. taking a list as its ...
14
votes
1answer
261 views

Conway's Game of Life in J

I have the following code which produces successive generations of Conway's Game of Life: ...
2
votes
1answer
99 views

Initializing an array of relative coordinates of all adjacent 2D matrix cells

The program should output this: _1 _1 _1 0 _1 1 0 _1 0 1 1 _1 1 0 1 1 Currently I have this code: ...