Learncado
Learncado

Learncado brings together a vast collection of questions and answers. Expand your knowledge, learn new skills, and find solutions to your queries effortlessly. Enhance your learning experience and save valuable time by exploring our website today.

Resources

  • Questions
  • Question By Tags

Help and support

  • Contact
  • About

  • Geniecourse
  • Jetsodeals
  • Rentcado
  • Dealcado
© 2021-2023 Learncado All Rights Reserved.

Search Results (234)

Results for arrays

December 2nd, 2023
Find elements in common with two sorted arrays?

Give. Two sorted arrays find elements in common. The arrays are the same length and each has distinct elements. Find in O(N). I was considering using ...

java
Read more
December 2nd, 2023
Trying to find average between the numbers of 2 different arrays

I'm trying to find out what's the average between the numbers of 2 different arrays. Well, actually I made it, the thing is, I'm making a verification...

java
Read more
December 1st, 2023
How can i shift Values in Arrays that are in an Array?

I have this assignment in my coding class where i need to shift values a certain amount over inside of arrays that are in an array. It's really confus...

javaarrays
Read more
December 1st, 2023
SystemVerilog Arrays

Is this array declaration valid? bit[31:0] shadow_mem[bit[31:0]]; But what does this mean? We usually declare it as bit[31:0] shadow_mem[31:0]; Are th...

system-verilogmultidimensional-array
Read more
November 28th, 2023
How to find duplicates between two arrays of objects in js?

Here are two arrays of the objects I have in js: var arr_A = [ {Name: "Smith", CheckedOut: true}, {Name: "Jane", CheckedOut: true}, ] var arr_B =...

javascriptarrays
Read more
November 29th, 2023
How to parse text file to load arrays in batch script

If I have this text file keys.txt: key1=val 1 key2=val 2 key3=val 3 I can use this script to load this script to load the values: @echo off setlocal ...

windowsarraysparsingbatch-file
Read more
November 28th, 2023
Optimization Challenge- Merging arrays

I'd like to host a challenge, I've made a JavaScript function that is very unoptimized and can be improved in a million ways, Could you optimize it to...

javascript
Read more
November 28th, 2023
Optimization of Python Nested loops with Two Arrays

In an assessment, I got the following question: "There are two teams of size N, and the skill values of each player on the team are stored inside an a...

pythonarraysoptimizationnested-loops
Read more
November 27th, 2023
Map over an array within an object of arrays

I am using a reusable component for React, and I am trying to map over an array within an object of arrays to go inside of this component. the data lo...

reactjs
Read more
November 26th, 2023
How do I sort arrays in an array by string using custom alphabet in JS?

I have this array: [ ["ik", "p", "I; me", 1], ["pat", "pre", "plus", 1], ["qeol", "adj", "only", 1], ["nei", "adj", "not", 1] ] I want...

javascriptarrayssortingmultidimensional-array
Read more
November 26th, 2023
Why won't my code output what it's supposed to? 2D arrays & methods

import java.util.Scanner; public class LabProgram { public static String getPhoneNumber(String[][] list, String name) { for (int i = 0; ...

java
Read more
November 25th, 2023
In a React application, how to render a component once by passing it two arrays at the time

I am trying to render a component only once by passing it two arrays and I want it to take the first element of the first array and the first element ...

javascriptreactjs
Read more
November 24th, 2023
Why can't I properly use strings and arrays in my code

I'm trying to do an assignment and every time i try to use a string it crashes and because of this line of code in gs_report.c if (IsProcessorFeatureP...

cstringarrays
Read more
November 22nd, 2023
can I easily make an array of objects with arrays of all parameter's and no for loops in java

I have arrays of Strings and Ints, each array contains one parameter for all objects. Is there a way to directly make an array of those objects withou...

javaarrays
Read more
November 22nd, 2023
The use of arrays in a recursive function in Dafny leads to verification failure

The following code, assert f(arr, 2) == 0;, fails to verify. function f(bs:array, hi:nat) : nat { if hi==0 then 0 else f(bs, hi-1) } method Main() ...

dafny
Read more
November 21st, 2023
Comparison and indexing series of arrays with length > 1

Title sounds more complicated than the facts really are. Given the data data = [ np.array(['x'], dtype='object'), np.array(['y'], dtype='objec...

arrayspandasindexingseriescomparison
Read more
November 20th, 2023
How to make a CSV file with arrays of varchar containing double quotes for PostgreSQL COPY

I am preparing a CSV for loading onto a table using the SQL command: COPY table FROM filename WITH (FORMAT csv, HEADER) This particular table has a va...

postgresqlpostgresql-copy
Read more
November 22nd, 2023
Storage size of empty smallint[] Arrays vs separate table in PostgreSQL

I have two options: a) Adding three smallint[] (array) attributes to my (main) table, two of them will be empty/unused most of the time and the third,...

postgresqlstorage
Read more
November 22nd, 2023
Weird output printing arrays in C

I decided to do the CS50 course again and tried to go about solving some of the problems differently. There is a task where you have to print pyramids...

cmemoryarrayscs50char
Read more
November 18th, 2023
Combining two arrays and send them to Highcharts

I am trying to adapt the code obtained on the web for my use. I have a lot of experience in C, C++ and Python, but almost none in PHP, so I do not kno...

javascriptphphighcharts
Read more
November 18th, 2023
Ansible: How to determine if a specified host is listed in a list of string arrays?

I want to create a vault (1password, not Ansible vaults) for each host in the inventory. - name: Get the vault list ansible.builtin.shell: cmd: ...

ansiblejinja2
Read more
November 17th, 2023
Comparing two arrays by first letters of each element and printing if equal

Let's say I have two arrays (A and B) in directory A #!/bin/bash A=( $(ls *txt) ) directory A contains: fox_abdce.txt rabbit_abdce.txt lemom_asnrndna....

awkbash
Read more
November 17th, 2023
Arrays "double array[var];"

I have given a task that goes like this: The array S[j] ( =0,…,7) has at least one zero element. Write a program to calculate the sum of the elements ...

c++arraysdoubleg++for-loop
Read more
November 16th, 2023
Using numpy arrays with root_scalar() from Python scipy.optimize

I need to solve a differential equation using solve_ivp() which works with numpy arrays. Some of the functions in by model are defined implicitly, so ...

pythonnumpyscipy-optimize
Read more
November 17th, 2023
jquery random image arrays inside divs

I have this website where when you refresh it will bring up a random image from multiple JS array inside multiple divs (each div has its own JS array ...

javascriptjqueryhtmlarraysrandom
Read more

Hot Topic

  • 25881

    How do I undo the most recent local commits in Git?

  • 11618

    How can I remove a specific item from an array in JavaScript?

  • 20343

    How do I delete a Git branch locally and remotely?

  • 7387

    How can I find all files containing a specific text (string) on Linux?

  • 7330

    How to find all files containing specific text (string) on Linux?

  • 7611

    How do I revert a Git repository to a previous commit?

  • 2671

    How do I create an HTML button that acts like a link?

  • 8481

    How do I check out a remote Git branch?