Questions tagged [dimensional]

This tag is deprecated, use the correct tags instead: Questions related to multi[dimensional] [arrays] should use the tag [multidimensional-array], use [multidimensional] for the specific data structures, or [dimensional-modeling] for the mathematical analysis with data. Otherwise, use [dimension] where relevant.

This tag is deprecated! Please consider using the correct tags instead:

115 questions
-2
votes
1 answer

How to unset or remove an array from a mult dimension array when you only know the key of the child but not the parent

I am working on an indexing proj. its all fine up until when i have to udate the index file. i want whe a website is deleted by the admin, all its index posting lists should be deleted. please help by pointing me to the write way of removing an…
katwekibs
  • 1,342
  • 14
  • 17
-3
votes
2 answers

C# shift two dimension array fast method

I have a 2D string array in C# and I need to shift that array to left in one dimension how can I do that in efficient way I dont want use nested for and i want an algurithm in O(n) not O(n2) for (int i = 50; i < 300; i++) { for (int j = 0; j <…
mhn_namak
  • 453
  • 1
  • 6
  • 18
-3
votes
1 answer

I am trying to simply print out a 2D array. But I am getting an error

Eclipse is telling me that, "The type of the expression must be an array type but it resolved to Theater"(The class for the object I created for my 2D array) on the last line of code I have below. Specifically here --> a[row] This is just one small…
-3
votes
1 answer

How to to fix this code for a Java program for 2-dimensional plane?

Kindly help me to to fix this code for a Java program for: In the 2- dimensional plane, a point is described by its two coordinates x and y. It supports these operations : A constructor allowing initialization of both coordinates Accessors and…
Jony mark
  • 1
  • 4
-4
votes
1 answer

how to define two dimensional vector which element is vector of variable size?

I want to define a vector with 20 rows and 4 columns which its elements is vector with variable size like this result={ {1,2,3},{5,4},{1},{10,15,16} {5},{1,2},{1,2,3},{1,4,5,6} ... } Result at first is empty ... some part of my code is…
-4
votes
4 answers

Convert a one dimensional array to two dimensional array

I have an array, whose structure is basically like this: array('id,"1"', 'name,"abcd"', 'age,"30"') I want to convert it into a two dimensional array, which has each element as key -> value: array(array(id,1),array(name,abcd),array(age,30)) Any…
Tedxxxx
  • 238
  • 3
  • 19
-4
votes
3 answers

How to iterate multi dimensional array and calculate sum for each row in php?

i have this array which i retrieved data from my database and put it in an array : $query = "select * from caseunder"; $result=mysql_query($query) or die('Error, insert query failed'); $array[] = array(); $numrows=mysql_num_rows($result); WHILE…
-4
votes
1 answer

Why we need 2D array in Javascript?

I am wondering why we need two dimensional arrays. I just learned them, but I don't find it helpful to use. Please answer! Kindly appreciate all of your answers.
Predator
  • 17
  • 2
-5
votes
2 answers

How to append new line to the list

I'm trying to present dimensional list in one column. I'm doing it in function so I want to append everything to new list. There is a problem. I cannot append new line to the list. I cannot use join because I' am operating on the lists not string so…
New_stud
  • 13
  • 3
-5
votes
2 answers

Tic-Tac-Toe Java

The assignment is to create a game of Tic Tac Toe using a two dimensional array. I created the board for the game down below, but now what I'm having issues with is letting the user place X's and O's on the board. I must use a two-dimensional array…
Wyatt Bush
  • 5
  • 1
  • 2
  • 5
1 2 3 4 5 6 7
8