Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26868

Re: multi dim array

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: multi dim array
Date 2015-02-18 14:12 +0000
Organization A noiseless patient Spider
Message-ID <mc26k3$2iq$3@dont-email.me> (permalink)
References <1bf955cc-1954-4144-a78c-930c8c3d5e5e@googlegroups.com>

Show all headers | View raw


On Tue, 17 Feb 2015 14:48:14 -0800, JRough wrote:

> I'm trying to get this output from a  ;

> 1-1 1-3 1-5 3-3 3-5 5-5

> Would this be a 4 dimensional array?

No

> Otherwise does this algorithm make sense?

Given an 'a' of [1,3,5] as used in your code the output is certainly 
attainable with a fairly simple algorithm.

> I had a test interview question and maybe I didn't understand
> the question.

That seems likely. Please state the actual test question. You have not 
done so, and given that you may have not understood it, I am unwilling to 
attempt to deduce the coding task you were set from your attempted 
solution.

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

multi dim array JRough <janis.rough@gmail.com> - 2015-02-17 14:48 -0800
  Re: multi dim array "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-02-18 01:47 +0100
  Re: multi dim array Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-02-18 01:22 -0200
  Re: multi dim array Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-18 14:12 +0000
  Re: multi dim array "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-02-18 17:55 +0100

csiph-web