Results 1 to 2 of 2
  1. #1
    colerelm is offline Member
    Join Date
    Apr 2011
    Posts
    7
    Rep Power
    0

    Default What are the constraints on the arguments?

    Java Code:
    public static int puzzle(int base,int limit){
    if(base>limit){
    return -1;
    }
    else
    if(base==limit)
    return 1;
    else
    return base * puzzle(base+1,limit);
    }
    }

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,188
    Blog Entries
    7
    Rep Power
    24

    Default Re: What are the constraints on the arguments?

    Integer.MIN_VALUE and Integer.MAX_VALUE

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. Physics Engine making constraints
    By sgthale in forum New To Java
    Replies: 8
    Last Post: 05-04-2011, 11:14 PM
  2. 2D Physics Engine making constraints
    By sgthale in forum Advanced Java
    Replies: 2
    Last Post: 04-19-2011, 05:18 AM
  3. Arguments
    By maya700 in forum New To Java
    Replies: 12
    Last Post: 02-01-2011, 06:57 PM
  4. Replies: 8
    Last Post: 09-23-2010, 12:07 AM
  5. Time constraints on object state
    By Flipke in forum New To Java
    Replies: 4
    Last Post: 04-11-2009, 06:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •