array tag

224 questions


1 answers
40 views
0
Ask questions about transforming the array into a pandas data frame.

The image was classified using RCNN and the result was received as an array.import pandas as pdimport collectionsx=r['class_ids']pic_before=collections.Counter(x)pic_beforeout : Counter({17: 2})y=r1['...

2 years ago

1 answers
131 views
0
the difference between java char and char[]

I heard that there is also a difference between char and char [] in Java, is that true?

2 years ago

1 answers
95 views
0
I want to compare the arrays

You want to compare an array with multiple arraysFor example, A={1,1,1,1}, B={{0,0,0,00},{1,1,1,1},{2,2,2,2},{3,3,3,3},...}, C={10,10,10},{20,20,20},...},D = {},...I want to compare A and B, compare A...

2 years ago

1 answers
43 views
0
Java Array Basic Questions

class CodeRunner{ public static void main(String[] args){ char[] hex = {'C', 'A', 'F', 'E'}; String[] binary = {0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 11...

2 years ago

1 answers
47 views
0
One-dimensional matrix manipulation inside a two-dimensional pie line

We're working on a code that clusters with a pie line.First, the initial data is a=[1,2,13,14,16,25,54,68,88,94,101,110,114,122,132,165,170] Assuming that it looks like this, I wrote the clustering co...

2 years ago

1 answers
103 views
0
Please tell me the simplest way to print out an array.

You are trying to output the array without overriding the toString(). A strange value was printed. int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray); //'[I@3343c8b3' <- This ...

2 years ago

1 answers
128 views
0
How do I copy an array in Java?

There's a value [1,2,3,4,5] in the array A, and even if you copy the value of A to B and change A to [6,7,8,9,10], B wants to remain as [1,2,3,4,5]for(int i=0; i<5; i++){ B[i]=A[i]}I did it like th...

2 years ago

1 answers
46 views
0
cLanguage problem

It's a language problem Using a two-dimensional integer array, input and output a 3X3 matrix, and create an appropriate function for the first row It's a question to print out after exchanging two lin...

2 years ago

1 answers
38 views
0
I want to save an array in localStorage, what should I do?

var names=new Array(); names[0]=prompt(New member name?);You can just do this, but I have to save it to localStorage now. var localStorage[names]=new Array();localStorage.names[0]=prompt(New member na...

2 years ago

1 answers
63 views
0
Find the maximum/minimum value in an array of primary types in Java

Writing a function that finds the maximum/minimum value of an array is a bit tedious, as follows::/** * * * @param chars * Maximum value in @returnchar array */private static int maxValue(char[] char...

« - 14 - »

© 2024 OneMinuteCode. All rights reserved.