Category "arrays"

Javascript - sort an array of multiple objects of objects

I tried with no success to sort an array of multiple objects of objects. Here my database : var jsonDatas = [ { "type": "Voiture", "item

How to subtract 1 dimension Numpy arrays with different shapes and plot the difference in seaborn or matplotlib? [duplicate]

Basically I have these arrays print(img_arr[0].shape)->(returns) (122218,) print(img_arr1[0].shape)->(returns) (125204,) so when I did

Subtracting two arrays (variables with decimals) [closed]

How to subtract the below two arrays in java? (09.34, 09.56, 09.00, 08.55 ) (17.25, 18.06, 17.55, 16.00)

Ho can i use Explode function inside foreach loop to get 2 different arrays? [duplicate]

I have this $array DD.MM.YYYY|XX,xxx [0]=> string(17) "04.01.2021|26,140" [1]=> string(17) "05.01.2021|26,225" [2]=> string(17) "06

Referencing one array to make changes in another given certain conditions in JavaScript [closed]

I have an array, called arr1, example [9, 0, 0 ,9, 9]. I made a copy of this and called it arr2. I am trying to add the value one (1) to certa

An array of `int` values ​and return an array of boolean values

The task The correct implementation should receive an array of int values and return an array of booleans where each element is a result of a check if a corresp

How to map one image at a time with Alice carousel?

I am trying to add a carousel for my products. I have an array of url images in product.images that i want to show individually in the carousel but when i map t

Array Java Quotient

So I need help I'm trying to calculate the quotient of all the elements inside an array. I only have 2 pairs of code but I don't know if they will work. public

How do I check which rows of one small array exists in another larger one?

How do I check which rows of one small array exists in another larger one? Given the following setup: final_batch = np.emtpy((batch_size,2)) batch_size = 4 a =

How can I skip loop for first and last element of array and set them to constant value?

I would like the loop to start from the second element and to end before the last one. So that I can set the first and last one to constant value. for (int i =

How to create a matrix with key and value in java

I have this table with these values I have this code in java import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;

How to get an Array value inside an object in an array Php [duplicate]

I have this array below at the last code part. To get ["db"] and ["size"] object in array through a loop I use <?php foreach ($result->

Looping arraylist object from class value into array java

So I'm trying to insert the value from ArrayList specifically for object Days into one array of integer here is the value I iterate into the table I I've try i

How to display subdocuments on frontend i am using mongodb as the database

This is the front end. I have made some changes you can check out my repo if anyone has any answer to this it'll be great use i think there is there a way to li

C++ Union Array differs in 32/64 bits

My code: union FIELD { int n; char c; const char *s; FIELD(){} FIELD(int v){ n = v; } FIELD(char v){ c = v; } FIELD(const char* v){

How can I call out a string from an object array?

I have recently started some OOP in C++, and I was trying to make a small program in Dev-C++ to store arrays of information on employees through a friends funct

Get Array of Values from a Nested Data

guys. How to get values from an array of the nested object, which I getting from the parent component. For example: @Input() result?: FullResult; construc

Javascript - Convert object to array object

Try to convert the following object (which was getting from an API response) to an array object. const oldObj = { Georgia : { notes: "lorem ipsum",

Given a rectangular matrix of characters, add a border of asterisks(*) to it

Example For picture = ["abc", "ded"] the output should be addBorder(picture) = ["*****", "*abc*", "*ded*

How to render html from a @foreach loop in a textarea

Using Laravel 8 livewire, I need to render a list of name ($list) on per line in a textarea. I do this <div class=" border border-red-800 rounded-lg mt-8 p-4