Search:

Type: Posts; User: mcmillhj

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    4,946

    [SOLVED] Re: Help; algorithm to determine 'range'

    Thanks for pointing that out. I wasn't seeing it in my test because the last two numbers in my data set were the same.

    Hunter
  2. Replies
    13
    Views
    4,946

    [SOLVED] Re: Help; algorithm to determine 'range'

    When I make the change you suggest my algorithm actually does not work.

    with this input and your suggested change: {2,3,4,9,11,12,13,16,19,19}

    I get this output:


    rangeString: 2-9, 9,...
  3. Replies
    13
    Views
    4,946

    [SOLVED] Re: Help; algorithm to determine 'range'

    I wrote this one, I think mine is a little simpler than yours. Let me know what you think.


    public class TestRange
    {
    public static void main(String[] args)
    {
    int[] intArray =...
Results 1 to 3 of 3