• Register

Recent questions tagged array

0 votes
1 answer 1 view
Problem: Try to discover this >Find the only element in an array that only occurs once.
asked 4 hours ago Chi Omega 13.6k points
0 votes
1 answer 4 views
Problem: Can someone please explain the difference between a vector and an array processor?
asked 10 hours ago Irenka Kiri 17.9k points
0 votes
1 answer 2 views
Problem: Is there some way around to solve it? >Array bound is not an integer constant before ']' token.
asked 1 day ago Danyal Sjoerd 6.8k points
0 votes
1 answer 1 view
Problem: Someone assist me please >C program to find the second largest element in an array
asked 1 day ago Sawyer Parviz 13.2k points
0 votes
1 answer 3 views
Problem: Is there an answer to this? >Find second largest number in an array without sorting in java.
asked 3 days ago Ashok Dileep 5.3k points
0 votes
1 answer 2 views
Problem: I need to solve this matter, please help >You can store a mixture of different data types in an array.
asked 4 days ago Ashok Dileep 5.3k points
0 votes
1 answer 2 views
Problem: Need to facilitate with this >To assign the contents of one array to another, you must use
asked 4 days ago Chi Omega 13.6k points
0 votes
1 answer 3 views
Problem: What is the difference between array of pointers and pointer to an array?
asked 4 days ago Irenka Kiri 17.9k points
0 votes
1 answer 7 views
Problem: How to solve this array > Array initializer must be an initializer list or string literal ?
asked May 5 ochena 23.3k points
1 vote
1 answer 2 views
Problem: For instance I have a set : {0, 1, 2, 3} Then how can I get a list of the subsets like : [set(), {0}, {1}, {2}, {3}, {0, 1}, {0, 2}, {0, 3}, {1, 2}, {1, 3}, {2, 3}, {0, 1, 2}, {0, 1, 3}, {0, 2, 3}, {1, 2, 3}, {0, 1, 2, 3}]
asked May 4 Raj Tyagi 15.6k points
0 votes
1 answer 3 views
Problem: Why can't we initialise two variables to its first element like I have done in the code?
asked May 3 salim1 60.6k points
0 votes
1 answer 4 views
Problem: I'm a newbie so please go easy on me. Also, I did check C pointer to array/array of pointers disambiguation, it didn't seem to answer my question.
asked May 3 salim1 60.6k points
0 votes
1 answer 9 views
Problem: I have an ArrayList, a Collection class of Java, as follows: ArrayList<String> animals = new ArrayList<String>(); animals.add("bat"); animals.add("owl"); animals.add("bat"); animals.add("bat"); As you can see, the animals ArrayList consists of 3 bat elements ... occurrences of an element. But that is compatible only with JDK 1.5. Our product is currently in JDK 1.6, so I cannot use it.
asked May 2 padma1 34.8k points
0 votes
1 answer 12 views
Problem: My goal is this to write a for loop to populate array userGuesses with NUM_GUESSES. I believe my only issue is with the first for loop. Can someone point me in the right direction?
asked May 1 Supti 13k points
0 votes
1 answer 5 views
Problem: Why is the best and worst case of linear search of an unsorted array O(n)?
asked May 1 Supti 13k points
0 votes
1 answer 2 views
Problem: I am trying to input numbers as a string and splitting and storing them in a string array and then later storing them as integers in int array. I have tried quite a few things like .trim() or scanner.skip() but am unable to solve this issue here. ... .java:65) at java.lang.Integer.parseInt(Integer.java:592) at java.lang.Integer.parseInt(Integer.java:615) at Hello.main(Hello.java:32)
asked May 1 ochena 23.3k points
1 vote
1 answer 3 views
Problem: Any solution to this problem? Find out duplicate number between 1 to n numbers. in java.
asked Apr 29 PkGuy 23.5k points
1 vote
1 answer 4 views
Problem: I am stuck in this while learning Java: Write a literal representing the largest character value.
asked Apr 27 PkGuy 23.5k points
0 votes
1 answer 3 views
Problem: How do I declare and initialize an array in Java?
asked Apr 27 Jack20 5.1k points
1 vote
1 answer 4 views
Pronblem: I have created a program to check if array contains duplicates values : function checkIfArrayIsUnique(myArray) { for (var i = 0; i < myArray.length; i++) { for (var j = 0; j < myArray.length; j++) { if (i != j) { if (myArray[i] == myArray[j]) ... } return false; // means there are no duplicate values. }Now , the problem is that it always the return the value true . What am I doing wrong
asked Apr 27 Raj Tyagi 15.6k points