• Register

Recent questions tagged arrays

0 votes
1 answer 1 view
Problem: Do you know how to swap array elements in C?
asked 11 hours ago jamuna1 18.1k points
0 votes
1 answer 1 view
Problem: How do I resolve the following error: undefined offset: 1 in?
asked 15 hours ago jamuna1 18.1k points
0 votes
1 answer 1 view
Problem I want to get position of an element in string, If i want to write a c++ code, how i write, Can anyone help me
asked 1 day ago Subhendu 4.4k points
0 votes
1 answer 1 view
Question: I read line with BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader.readLine(); Example input is 1 4 6 32 5 What is the fastest way to read the input and put it into an integer array int[] ? I'm also looking for some one-line solution if possible.
asked 1 day ago Atik03 10.1k points
0 votes
1 answer 2 views
Question: I am trying to print the contents of an array using System.out.print() but I encounter this error: Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 at java.util.ArrayList.rangeCheck(ArrayList.java:604) at java.util.ArrayList. ... + itemList.get(j).selectedLength + " "); } } I don't have any debugger experience so I appreciate any help, thanks.
asked 2 days ago Atik03 10.1k points
0 votes
1 answer 2 views
Problem: So I am trying to use char array in C to copy from one array to another but I am stuck at this part. How can I copy one array to another in c?
asked 2 days ago muktaa 4.9k points
0 votes
1 answer 1 view
Problem: Check if something is an array javascript..
asked 2 days ago Ethan ross 2.7k points
0 votes
1 answer 3 views
Problem: Problem: Need your help to solve of rsa given n, find p and q python ?
asked 3 days ago rakib1 51.5k points
0 votes
1 answer 2 views
Problem: How would I go about removing a certain key-value pair, given the key?
asked 3 days ago ummesalma 25.2k points
0 votes
1 answer 2 views
Problem: How does ArrayList work?What data structure does an ArrayList use internally?
asked 3 days ago Humaira ahmed 15.1k points
0 votes
1 answer 1 view
Problem: I had been doing a question. I have not written the function code here because I am getting an error: invalid types float[int] for array subscript in the following code snippet. Please tell me why is this error coming? #include<iostream> using namespace std; main() { float a,b,p, ... -1] / s; } } root = buildTree( arr, n); minOp = bfs(root,b); cout<<minOp; } Any help would be appreciated.
asked 3 days ago Atik03 10.1k points
0 votes
1 answer 2 views
Problem: It seems something wrong when I am trying to write a program using recursion. Please guide me to find determinant of a nxn matrix.
asked 3 days ago muktaa 4.9k points
0 votes
1 answer 2 views
Problem: I've tried to handle this error but no success: Stack around the variable was corrupted c
asked 3 days ago ummesalma 25.2k points
0 votes
1 answer 2 views
Problem: I have a boolean of 100 values. for a 100 steps I have to switch value from true to false, however this is increments of the step value. e.g. first step = increment by one and flip false to true second step = increment by two and flip boolean (no matter the value) third ... put an int in the so that I can have a boxnumber so I know which number is true e.g. box 1 = True, box 7 = true
asked 3 days ago Atik03 10.1k points
0 votes
1 answer 2 views
Problem: I've tried using the standard AVERAGEIFS combined with the MONTH forumla, but I think the row of dates is throwing it off. I've also tried inserting a new row below the dates (i.e., row 2) with the Month of the collection date in row 1, and referring to ... . I've also tried entering it as an array formula. The dates are C1:DW1, Algae Groups are B2:B246. Any thoughts are much appreciated?
asked 4 days ago Sana8989 8.9k points
0 votes
1 answer 2 views
Problem: Find kth largest element in array java.
asked 4 days ago Dan phillip 4.8k points
0 votes
1 answer 2 views
Problem: If you could lead me in the right way, I would appreciate it.
asked 4 days ago salim1 39k points
0 votes
1 answer 2 views
Problem: Can anyone suggest a solution,"convert string of numbers to int array c++."
asked 5 days ago Humaira ahmed 15.1k points
0 votes
1 answer 2 views
Problem: I have an integer array in java that needs its length to vary throughout the class. Specifically, I need it to increase by one in certain situations. So, how to increase the size of an array in java?
asked 5 days ago anika11 4.1k points
0 votes
1 answer 1 view
Problem: Can anyone explain the process of "assign studentname with the string element at seatposition in array classroster."
asked 5 days ago anika11 4.1k points