# Re: Filling 2d array in less than O(n^2)?

*From*: pjhyett@xxxxxxxxx*Date*: 18 Nov 2005 13:57:54 -0800

That's what I'm thinking about

If you look at the output for 4x4 it looks like

0 1 2 3

1 2 3 4

2 3 4 5

3 4 5 6

and I'm thinking there's a way to take advantage of the fact that some

numbers are repeated.

.

**Follow-Ups**:**Re: Filling 2d array in less than O(n^2)?***From:*Amitabha Roy

**References**:**Filling 2d array in less than O(n^2)?***From:*pjhyett

**Re: Filling 2d array in less than O(n^2)?***From:*Casey Hawthorne

- Prev by Date:
**Re: Filling 2d array in less than O(n^2)?** - Next by Date:
**Re: Filling 2d array in less than O(n^2)?** - Previous by thread:
**Re: Filling 2d array in less than O(n^2)?** - Next by thread:
**Re: Filling 2d array in less than O(n^2)?** - Index(es):