6 kyu

Will it balance?

140 of 158marbiru
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • barento Avatar

    Should have just given the formula for center of mass,

    mass1position1 + mass2position2 ... / mass1 + mass2 ...

    or at least a better hint

  • ahmet_popaj Avatar

    Interesting finding out how it works.

  • JohanWiltink Avatar
  • ejini战神 Avatar

    Nice educational kata!

  • Fbasham Avatar
  • user9644768 Avatar

    Please use new python test framework.

  • laytone Avatar

    Are we supposed to solve this using moments?

  • G_kuldeep Avatar

    Nice kata:)

  • Unnamed Avatar

    This comment has been hidden.

  • Darshan97 Avatar

    Interesting one

  • liuzhenqi77 Avatar

    This comment has been hidden.

  • Blind4Basics Avatar

    Hi,

    Interesting one. But the description is quite obscur compared to what you want... Maybe a hint about the fact that we're dealing with a "somewhat real mechanic problem" might help?

  • siebenschlaefer Avatar

    This comment has been hidden.

  • ZED.CWT Avatar

    Why

     [2, 1, 1, 5, 8, 6, 7, 2, 5, 6, 2, 8, 8, 3] 
     [0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0]
    
    expected:  False
    
    sum([2, 1, 1, 5, 8, 6, 7, 2]) == 32 == sum([5, 6, 2, 8, 8, 3])
    

    What's the different with

    [7,1,1,1,1,1,1,1]
    [0,1,1,0,0,0,0,0] ---> will balance
    
  • Avanta Avatar

    No sample tests. You should probably add some.