Siddhi Parkar
BAN USERA Passionate developer who loved DS and Algorithm Paradigm.
100
100 -- // inside integer array there is and another array which is object. hence it would be a shallow clone instead of deep.
5 -- // since we are creating new object copy[1] = new int[]{300,400,500}; now copy[1] will refer to completely new memory address and any further changes wont affect shallow clone of data.
400
Hope this helps.
Thanks
public static void print(char[][] arr) {
int k =0;
char[][] result = new char[2^input.length][2];
for(int i=0;i<arr.length;i++) {
char f = arr[i][0];
char s = arr[i][1];
for(int j = i+1; j< arr.length;j++) {
char nf = arr[j][0];
char ns = arr[j][1];
result[k] = new char[]{f, nf};
result[k+1] = new char[]{f, ns};
result[k+2] = new char[]{s, nf};
result[k+3] = new char[]{s, ns};
k+=4
}
}
}
RepVickiShaw, abc at 8x8
I'm a virtual cartographer, navigating the terrain of pixels and polygons in the vast realm of map editing. My ...
RepHondaRonda, Accountant at Achieve Internet
I am a communications specialist who develops and nurtures relationships between an organisation, members of the media and the public ...
RepReginaCollins, Accountant at 8x8
Greetings! I'm Regina Collins, a seasoned professional in the dynamic world of procurement and supply chain management. With over ...
Repabigailbeyer415, Data entry keyer at Opentable
Outside the world of data entry, I find joy and relaxation in a unique hobby—Reddy Anna Casino. Whether it ...
RepOniScott, Analyst at Agilent Technologies
Dedicated and energetic bakery assistant with a passion for flavor and a love for creating.Excellent at managing several tasks ...
- Siddhi Parkar March 20, 2018