Questions tagged as 'matriz'

1
answer

How to print a table-shaped array in nodejs on the console?

How do I get the same output of this array, written in Java, in NodeJS ? public class Matriz { public static void main(String[] args) { int[][] m = new int[4][4]; for (int i = 0; i < m.length ; i++) { for...
asked by 16.04.2018 / 19:31
1
answer

Python, show index of a specific line within the array

Dear Sirs, Could you give me some help .. an idea?! - > I'm trying to display (print) the index (the line) of the longest range between the largest and the shortest term of the rows of an array they meet. For example: Imagine an arra...
asked by 25.02.2018 / 19:35
1
answer

Accessing array row and row-by-column switching

Good afternoon friends, I'm trying to make a swap in an array, swap values from the first row with the values from the last column. I know that a line of an array in C is a vector. I thought of doing so but as always my logic is wrong. #define...
asked by 23.12.2017 / 18:17
1
answer

Matrices and Pointers

Hello, how do I point to a multidimensional array? I know to do this with a vector (unidmensional array), it looks like this: int v[5]; int *ptr = v; I understand this very well, but with an array I can not do that. When I use the same tact...
asked by 05.11.2017 / 03:44
1
answer

Can anyone help me to value the positions of this array with pointers?

Hello, I am in doubt about the following code, it creates a two-dimensional array using pointers, the command line that should assign specific value to each position of the array does not seem to work, because when typing on the screen it appears...
asked by 05.11.2017 / 01:03
2
answers

assignment to expression with array type

I'm having an error while associating an array address in a pointer to struct, I'm getting an error of type:    assignment to expression with array type The code I'm using is this: struct MaxHeap { int size; int* array; }; stru...
asked by 14.10.2017 / 16:17
0
answers

How to return the difference of a matrix in C # without using LINQ? [closed]

I have an array A and B: Method: public static int[] RetornaDiferenca(int[] a, int[] b) {... } Calling the method: RetornaDiferença(new int[] {1, 2, 2}, new int[] {2}) The result would have to be: new int[] {1} because all it...
asked by 24.10.2017 / 12:09
0
answers

Inverse matrix in blocks form [closed]

I have an array of 1 shape (X and U are square): | X Y | | Z U | What is the inverse of the matrix (which I do not know) (A and D are square): | A B | | C D | I'm trying to get the inverse array of "A" from array 1, I tried to use "Mat...
asked by 08.09.2017 / 17:50
1
answer

Error in array as function parameter

Good evening. I'm having a problem using an array as a parameter in my functions. I have a function that has an int array as a parameter, when I call the array an original array, and in the function I manipulate the parameter and saved in an...
asked by 11.08.2017 / 04:51
0
answers

How to create sublists obeying the connection of cells in an array

Friends, I'm trying to create sublists from an array to target cells that are connected, such as the array below: From this matrix I get this list with the painted cells: lista = [[1, 1], [2, 1], [2, 2], [2, 3], [2, 5], [2, 6], [3, 2], [...
asked by 20.02.2017 / 04:23