My homework

Does anyone want to do my homework?

no
kys

ok

The answer is 2.

meeeeeeeh :( tempting

i finished your homework seconds ago.
definitly wasted to much time at 5

KKKKKKKKKKKKK

...

Make j= i+1 on initialization, and make I go to A.length -1. (This prevents out of bounds indexing)

Fuck

It literally tells you how to do it

That's some next level laziness

True. Not that it matters much OP, but you could also return early if you found a duplicate:

public static boolean hasDuplicates(int []A){
for (int i=0;i

:(

public static boolean hasDuplicates(int []A){
int len = A.length
for (int i=0;i

>mergesort

Wish I knew how to code
But all I do is build pc's and have a tiny penis

BLANKITY
BLANKITY
BLANK

Fuck it

sdikdsififjvihond fhifvuv ujbdf ufd udf uiofjif vijf dijdf ijfd n

do your own homework fag or you wont pass the test

> Continue the for loops even when the result is determined.

Your teacher is a retard. Sorry senpai

>literally can't do job interview questions
Change majors.

You can find pajeets on Reddit that will charge you like 3 bucks to do simple shit like this.
If you're retarded but forced to stay in college/highschool for whatever reason (parents pressure, etc.) it might be worth it to find a pajeet willing to work long term for you. They might even give you a discount.

How in the world do you expect to make it through this whole major if you can't be bothered to do intro material? Man up.

If you can't handle something of this level, consider Women's studies.

I'm a potato

Use a hash set and you won't need to worry about going o(n^2)