Category "arrays"

Reshaping numpy array without changing the data

I'm trying to reshape an array of bitmap images that has a shape of (50,50,90000). How can I modify it so that I can get an array of (90000,50,50)? - I tried ar

Trying to output a custom powershell object where I can align each line of two different variables containing Category:Description

I'm trying to do an network access control audit by grabbing a user's AD groups, their descriptions and then output them in a way shown by this example: [User]

How to check whether all number elements in an array are even numbers with recursion?

I'm currently learning as much as I can about recursion but I'm really stuck on how to use it to check whether all the number elements in an array are even numb

How to convert PHP multidimensional associative array to API http query in the format the API specifies? [duplicate]

I have the following array $folder_data = array( "title" => "Testing API Creation", "description" => "Testing the Wrike API by c

JS Find the missing letter (alphabet - array)

Write a function that takes an array of consecutive (increasing) letters as input and that returns the missing letter in the array. It will be always exactly o

Link between two JavaScript objects and then create condition

I have this set of data : [ { CIRPIC: 'SAL', ALLPIC: [7, 8, 9, 10] }, { CIRPIC: 'SUC', ALLPIC: [5, 6, 7] }, { CIRPIC: 'LI3', A

C# array issue due to indexing of int

I am fairly new to this and trying to learn. I am struggling trying to make a loop to find the max value in an array. I am not sure what I am doing wrong. I hav

React Native FlatList Items Disappearing

I have a Modal that the user selects categories from, and then that category loads into a FlatList on their profile page. When the first category is selected, i

Including a specific field from a specific item from an array

I have the following function: function processMegaventorySalesOrder(salesOrder) { let endUser = salesOrder["SalesOrderContactPerson"] let clientName = sale

how to alter reduce function so it produce different result

I have this array: data: [ '+section1+', 'big text 1 here.', 'big text 2 here followed by list:', '-this is list item;', '-this is another list item;'

How can I compute a very big digit number like (1000 digits ) in c , and print it out using array

how to print a number in C with 1000 digits same as 31000 ? using arr[1000], every position in the arr gets a digit. void main() { unsigned int Base, Power

codewars Array.diff javascript

this is my first question as I'm learning programming for few days but now and I'm stuck Task: Your goal in this kata is to implement a difference function, wh

How can I rotate this array?

I have this code that works perfectly but in the opposite direction ( left ) I would like to rotate this array to the right, how can I do this? public int[] Ro

How to ensure I can't add in integers or any numbers into an array via user input for ruby

I'm trying to create an array that only allows strings to be passed through, no numbers at all. Is there a way to make this possible? I've tried the below expec

How do I tell my program to go back to a certain point after the wrong answer is selected?

In my midterm CYA game, you come across 2 staircases, left and right. You have the option to choose which one you go to, the right advancing you and the left (e

Generating List Items from an Array with Javascript [duplicate]

I am trying to generate a list of names from an Array with this piece of script const names = ["John", "Hanna", "Luis", "Halley", "Maive"] con

Grid from a set of arrays - how to cut execution time?

I have a wide set of splines, and at each point (x,z) of these splines is associated to a field value. I need to map all these points and relevant field values

How to convert binary into sign representation?

If an array consist of decimal number which represents as blocks('#') or empty(' '). For example. A = [31,21,29,19,31] represents['11111', '10101', '11101', '

Transform array into object with custom properties

I have this array myarr = [ '=title1', 'longText0...', 'longtText1...', '=title2', 'longTextA...', 'longtTextB...', 'longtTextC...' ]; symbo

Calculate length of string object using pointers instead of char arrays

I'm working on an exercise to calculate the length of a string using pointers. Here's the code I've written below: int main() { std::string text = "Hello W