help.. totally no idea on how to make it...

Discussion in 'Java' started by cire09, Oct 7, 2010.

  1. cire09

    cire09 New Member

    Joined:
    Feb 27, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Problem::confused::cryin::crazy:
    suppose you are given 100 gold coins labeled w/ numbers 1 through n. Coin n has weight and worth that is sqrroot(n). Given one minute if computation, how close can you come to dividing the 100 coins into piles of 50 coins each of nearly equal weight. The output should be a difference in the weight, followed by a list of the 50 labels of coins on one side of
    the scale. :confused::cryin::crazy:


    PLS help me...this is the case study that is given to me but i totally suck in memorizing formulas in mathematics.. thats why i dont know how to make this one...:cryin:
     
  2. ManzZup

    ManzZup New Member

    Joined:
    May 9, 2009
    Messages:
    278
    Likes Received:
    43
    Trophy Points:
    0
    Occupation:
    Production Manager:Software @ ZONTEK
    Location:
    Sri Lanka
    Home Page:
    http://zontek.zzl.org
    you can get two boundaries
    assign to array and sort ascending for a start
    then take the value at 49 as the boundary line
    so you can keep adding the numbers > or < the boundary
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice