Search:

Type: Posts; User: DavidFongs

Search: Search took 0.08 seconds.

  1. Replies
    6
    Views
    3,054

    Re: disticnt numbers

    Here is some psuedo code to do it with nested loops


    for(every number in the numbers array){
    boolean found = false;
    for(every number (call it distinct) in the distinct array){
    ...
  2. Replies
    6
    Views
    3,054

    Re: disticnt numbers

    First off, even if the logic was correct, the syntax of your else is wrong, since you are missing the brackets (without the brackets only the first line after the else will be executed).

    You can...
Results 1 to 2 of 2