ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

CLOSED


  • This topic is locked This topic is locked
CLOSED

#1

Humphry
Humphry
    Offline
    366
    Rep
    119
    Likes

    Designer / Developer

Posts: 3182
Threads: 108
Joined: Jun 25, 2019
Credits: 0

Four years registered
#1

CLOSED


  • 0

#2

Eroncam
Eroncam
    Offline
    0
    Rep
    0
    Likes

    Member

  • PipPipPip
Posts: 44
Threads: 0
Joined: Oct 17, 2019
Credits: 0
Four years registered
#2
Nice of you

  • 0

#3

FaithHF
FaithHF
    Offline
    36
    Rep
    234
    Likes

    SESH

Posts: 408
Threads: 36
Joined: Dec 04, 2016
Credits: 0

Seven years registered
#3

Cool, now actually write the sorting algo yourself.
Come on, don't post useless shit that you can't even break down yourself.


  • 0

#4

tonu96
tonu96
    Offline
    6
    Rep
    40
    Likes

    Addicted

Posts: 211
Threads: 6
Joined: Mar 12, 2019
Credits: 0
Five years registered
#4

Cool, now actually write the sorting algo yourself.
Come on, don't post useless shit that you can't even break down yourself.

 

Must be at least O(n log n), none of this O(n^2) bullshit.


  • 1

#5

FaithHF
FaithHF
    Offline
    36
    Rep
    234
    Likes

    SESH

Posts: 408
Threads: 36
Joined: Dec 04, 2016
Credits: 0

Seven years registered
#5

Must be at least O(n log n), none of this O(n^2) bullshit.

 

Damn, you're gonna throw mergesort at him from the get-go?

Tough shit OP, pull through rn


  • 0

#6

tonu96
tonu96
    Offline
    6
    Rep
    40
    Likes

    Addicted

Posts: 211
Threads: 6
Joined: Mar 12, 2019
Credits: 0
Five years registered
#6

Damn, you're gonna throw mergesort at him from the get-go?

Tough shit OP, pull through rn

 

This is Nulled, we have to have higher standards. Expect the unexpected.™


  • 0

#7

Humphry
Humphry
    Offline
    366
    Rep
    119
    Likes

    Designer / Developer

Posts: 3182
Threads: 108
Joined: Jun 25, 2019
Credits: 0

Four years registered
#7

lmao this is shiyt is for assignment purposes, and i was just sharin it dont y be mad peps XD


  • 0

#8

ManuelPardo
ManuelPardo
    Offline
    0
    Rep
    7
    Likes

    Airborne forever. I love you, Michi baby.

Posts: 19
Threads: 2
Joined: Jan 15, 2020
Credits: 0

Four years registered
#8

Why on earth are you using a While cycle?

while(x<50){
   System.out.print("Enter name: ");

   user[x] = val_Holder.nextLine();

   x++;

  }

You could just turn it into a for:

for(int x=0;x<DIM;x++){      //Declared DIM as a constant 
   System.out.print("Enter name: ");
   user[x] = val_Holder.nextLine();
   System.println();   //you also forgot to add a line separator after receiving the input
}

Also, i strongly reccomend you to dont use "System.out.println" to output variables, you should use instead "System.out.format("%[variable type]",[variable name]) since it handles variables far better than println does

 


  • 0


 Users browsing this thread: