8 kyu

Find the Difference in Age between Oldest and Youngest Family Members

11,124 of 20,863KaraM
Description
Loading description...
Algorithms
Arrays
  • Please sign in or sign up to leave a comment.
  • ptd3v Avatar

    Worst family gathering conversation, it's the same result every year until one of them dies.

  • kaushiksarangi26 Avatar

    This comment has been hidden.

  • estem8 Avatar
  • BitWizCoder Avatar

    i'm having this error, is this problem with the kata? 'assertSimilar is deprecated, use assert.deepEqual' btw i'm writing js.

  • Meduardohhh Avatar

    Why are they calculating the age differences between members if that is actually a constant? Why not just write it on a piece of paper and only recalculate when granny kicks the bucket? I mean don't get me wrong it's good for a kata. Just the story does not make sense.

  • rodee7 Avatar

    This comment has been hidden.

  • sarpanjot Avatar

    This comment has been hidden.

  • ejini战神 Avatar

    (author inactive)

  • inline_five Avatar

    I'm not really sure how these are ranked. I've spent half an hour trying to just get the size of the array, or the array, to print in C. I keep getting memory errors. Even a simple printf("%zu", a); for the array size doesn't work. I've been really attempting to learn C but when one can just write print(ages) in python and presto it's there, wtf over? I just have no understanding of how to access the information via these functions. The python problems seem super easy by comparison. Just getting access to the information in C is like 90% of the battle. /rant

  • belwood Avatar

    This comment has been hidden.

  • JMainol Avatar

    This comment has been hidden.

  • crush_it_with_chris Avatar

    I'm new to programming and was stuck on why my output was incorrect. I was returning a list instead of a tuple. Might be worth noting that to clarify since this is a kata for 8 kyu. But now I understand the difference. So maybe that was the point?

    Edit: I was using Python

  • larsboertjes Avatar

    [Python] In my opinion it has to be more clear in the instruction that you have to return a tuple. Now I assume I have to return an array. Fun kata nevertheless

  • riverii Avatar

    can anyone translate it to java please

  • RobnettSean22 Avatar

    I was def thrown off by the "in order" part.

  • colomike925 Avatar

    This comment has been hidden.

  • anter69 Avatar

    Ruby translation kumited -- please check and approve (author is inactive)

  • tshephoboya Avatar

    cant this be achived using classes?

  • rowcased Avatar
  • B1ts Avatar
  • stellartux Avatar
  • isysoi Avatar

    Python translation added.

  • donaldsebleung Avatar

    Needs random test cases

  • smile67 Avatar

    This comment has been hidden.