1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
GuDViN [60]
3 years ago
6

The method removeDupes is intended to remove duplicates from array a, returning n, the number of elements in a after duplicates

have been removed. For example, if array a has the values {4, 7, 11, 4, 9, 5, 11, 7, 3, 5} before removeDupes is called, then after duplicates are removed, a will be {4, 7, 11, 5, 9, 3} and 6 will be returned.Consider the following three implementations of RemoveDupes. I. public static int removeDupes (int [ 1 a) int n-a.length; for (int i-0, icn; i+M int current- a [il: int j i+1; while (jcn)K if (currentaulK alil aln-1) return n; Il. public static int removeDupes (int [] a)t int n-a.length; for (int i-0; ikn; i++ int current a [il for (int j-0; j
Computers and Technology
1 answer:
horrorfan [7]3 years ago
3 0

Answer:

public int removeDupes(int[]a){

int n =0;

for(int x =0;x<a.length;x++){

for(int y=0;y<a.length;y++){

if(a[x]==a[y]){

n++;

}

}

int left = a.length-n;

return left;

}

}

Explanation:

You might be interested in
The code selection above is taken from the Color Sleuth activity you just completed. This selection would count as an abstractio
Vinvika [58]

Answer:

b

Explanation:

4 0
3 years ago
What happens when you press the Enter key at the end of a line of bulleted text?
sladkih [1.3K]

i think the  answer is d

6 0
4 years ago
Read 2 more answers
Choose the words that make the following sentence true.<br> Primary memory is
ki77a [65]

Answer:

Primary memory is computer memory that is accessed directly by the CPU

Explanation:

8 0
3 years ago
Copy the 10 statements as they appear below into your journal.
AURORKA [14]

B A C D C A B B CDAAD

4 0
4 years ago
Read 2 more answers
Need answer ASAP. No links
DIA [1.3K]

Answer:

A <b>

Normally AD and BC are written in bold letters.

for example : The terms anno Domini (AD) and before Christ (BC).

Within available option the best option to choose is <b> hope it helped

5 0
3 years ago
Other questions:
  • What does the group on option do?
    10·1 answer
  • Mark works as a Network Administrator for NetTech Inc. The company has a Windows Server 2008 domain-based network. The network c
    7·1 answer
  • Without entering into the internet cloud or intranet cloud, how many icons in the topology represent endpoint devices (only one
    6·1 answer
  • Consider an unpipelined or single-stage processor design like the one discussed in slide 6 of lecture 17. At the start of a cycl
    10·1 answer
  • You are creating a presentation and you have come to the last slide. You still have more information to add. What should you do?
    7·1 answer
  • While your hands are on home row, your left hand rests lightly on _____.
    13·2 answers
  • I like the impact that the increasing number of social grants may have on the things mothers​
    14·1 answer
  • List five application programs you recommend, and write a sentence explaining why.
    9·1 answer
  • Mr. Simmons has assigned a research project. Every student in the class will create a single page report about the recycling hab
    15·1 answer
  • Consider the following code.
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!