array tag

224 questions


1 answers
406 views
0
VBA 2-DIMENSIONAL DYNAMIC JAG ARRANGEMENT

Purpose: I want to create a 2D dynamic jug arrayI want to expand only the second dimension laterWe decided to declare a one-dimensional array in variant form and store it in it again.I tried three met...

1 years ago

1 answers
410 views
0
I want to delete a combination of arrays specified in Python's three-dimensional array.

I would like to delete [[23][01][01]] which is the opposite combination of [[01][23]] in Python's three-dimensional ndarray array as shown below.import numpy as nparr1 = np.array([[0,1], [2,3]], [[...

1 years ago

1 answers
450 views
0
I want to create an array of sequences from "1" to a specified number.

const createNum=(maxNum)=>{constary_result=[];for (let index=1; index<maxNum;index++){ aary_result.push(index); if(index===maxNum){ returnary_result; }}};console.log(createNum(100));// result//...

1 years ago

1 answers
249 views
0
Is there a reason why dynamic arrangement should not be declared like this?

The size of the array is determined at compile time, so to declare an array of dynamic sizes int size;scanf(%d, &size);int* arr = (int*)malloc(sizeof(int) * size); I was taught to do this, but eve...


2 answers
395 views
0
How do I initialize while declaring a multidimensional array in C#?

It's exactly the same as the title.For example, PHP can declare and initialize variables simultaneously as follows:$arr=[ arr1 = > [ val1, val2, val3 ], arr2 = > [ val4, val5 ], arr3 = > [ va...

1 years ago

1 answers
415 views
0
2D array append

A1 = [[6,-8,11], [7,10,12],[12,14,7],[-5, 9, 4],[5, 7, 8],[3, 13, -2],[11, 8, 9],[3, 5, 4]]I'd like to add the sum of the first and third values after this[[6, -8, 11, 17],[7, 10, 12, 19],[12, 14, 7, ...

1 years ago

1 answers
394 views
0
I want to sort JavaScript objects in reverse order.

JavaScript objects cannot be sorted and reversed.If you are familiar with it, please let me know.There is a function that returns the following objects, and I would like to reverse them in descending ...

1 years ago

1 answers
262 views
0
Understanding Ravel Multidimensional Array Value Extraction

There is an application currently under development at Ravel, and I would like to treat nested data as a single array, but I am having a hard time because I do not know how to do it.The forms we want ...

1 years ago

1 answers
421 views
0
method of estimating the similarity of an array

What is the most efficient way to estimate the similarity between n arrays?For example, array1=['aaa', 'bbb', 'ccc', 'dd']array2 = ['bbb', 'ccc']array3 = ['aaa', 'ccc', 'ddd', 'eee']array4 = ['aaa', '...

1 years ago

2 answers
348 views
0
How do I delete a key according to the value of an object?

If there is an array similar to the following, containments=[ { 'id' : 1, 'category' : -1, 'question' : -1, 'answer' : -1} , { 'id' : 2, 'category' : -1, 'question' : 0, 'answer' : -1} , { 'id': 3, 'c...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.