Category "arrays"

Extract complete string containing 'xxx' between two spaces

I want to know if there is a formula to extract a complete string containing 'xxx' between two spaces. For example:

RXJS data manipulation

I am trying to find the reactive way of manipulating data in an array of objects. In the array below, I want to determine the low score in groups of four and a

Return Array After For Loop

Having a hard time understanding for loops in arrays. Trying to create a Thank You card creator and these are the steps I'm trying to follow: Create a new, empt

TextView and data structures with practically unlimited capacity?

I need a TextView-like widget that is able to show file contents of arbitrary size. Android default TextView can hold and display 2^31 characters, which is just

Looping through multiple collection of arrays

I have a lot of data as response not parsed and also, so you can see what is in the response. But I want all the scores from the table results, the query filter

What is a NumberFormatException and how can I fix it?

Error Message: Exception in thread "main" java.lang.NumberFormatException: For input string: "Ace of Clubs" at java.lang.NumberFormatException.forInputStrin

Meteor Catcher isn't running, not sure why

I was creating a meteor catcher game for my school project, I created the meteor catcher game and a restart function when you press your mouse. However, after y

Printing multiplication table using arrays and nested for loops

I am working on an assignment to create a multiplication table using a 2D array. This is what I came up with. 'use strict'; window.addEventListener('load',

Trouble with $_POST [duplicate]

so I am trying to get this to post data to solutions.php in my files. but when i print_r($_POST); I dont get any values in my POST. <form a

C++, initialize a 2d array. error:subscript requires array or pointer

New to C++. Here is my code: #include <string> #include <cstdlib> #include <time.h> using namespace std; const int Gardensize = 20;//Garden

Python valueError: setting an array element with a sequence, TypeError: only size-1 arrays can be converted to Python scalars on MLP

I have this dataset (shape is (36,2)). x is a numerical pattern, y is a binary class (0,1) x y [0.2, 0.3, 0.5 ..... 0.5] 0 [0.1, 0.4, 0.5 ..... 0.9] 1 and so

How to filter an array by deleting a tag?

i'm trying to refilter an array but the path to access the choosen parameter seems to be a bit tricky. The full project is supposed to filter on 3 parameters bu

Save Data to Array Variable in For Loop

I need to find the earliest & latest dates for certain table entries. A link to a diagram of the table. The premise is that every time an entry has a desire

I have an unexpected buffer overrun warning, why do I have that?

I have to create a function that sum components of a vector this way: first + second, third + fourth, 5th + 6th, and so on. original vector has size "size". I h

swapping array elements without a temporary variable

The following code: var words = ['javascript', 'hmtl', 'css', 'python']; words[0] = words[3]; words[3] = words[0]; alert(words); ...gives

NumPy Slicing HackerRank

I have wrote a function named array_slice which gets four numbers n, n_dim, n_row, n_col from the user and performs array operations given below. Instructions:

What is the problem in this keras input shape?

from matplotlib import units import numpy as np from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from tensorflow.keras

Need help on Array VBA

I don't understand some parts in the following code: For i = 2 To UBound(a, 1) txt = Join$(Array(a(i, 3), a(i, 4)), Chr(2)) If Not dic.exist

given 2 arrays , create an object, matching the element of array1, with the key of the object of array2

I really don't know where I'm failing, I try 1000 ways, but I can't. function userCheck (arr1,arr2) { let map = {}; arr1.filter((user) => { arr2.f

Array and string in ruby

Hi amazing stackers! date = "10/02/2021" d1 = date.split("/") d2 = d1.to_s puts d1 puts d1.class puts d2 puts d2.class in the above code, d2 shows the data typ