Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • Three lists are passed to your function, the source and the other two you have to populate.

  • I don't understand this Kata for Python 3.6.

    So I'm supposed to take a single list and split it into two, right?

    So why are there three inputs: source, front, back?

    I thought the first thing I'd do is print all three inputs to try and figure this out, or at least just understand what form this list is arriving... but all I get back is a reference to the Node object which I don't feel has been properly explained.

    Anyone able to clear up what these instructions want me to do for a Python 3.6 implementation?

  • Sure, Got it! It was my mistake in interpreting the kata.

  • The error message is wrong, but the test is correct. build_one_two_three().next.next.next is None, and it has no data attribute.

  • Python: You have a mistake in the test case number 8 ---> test.assert_equals(build_one_two_three().next.next.next, None, "Third node should should have 3 as data.") as you are referencing to the memory address and not to the data itself, thus an issue.

    I think it should be ----> test.assert_equals(build_one_two_three().next.next.next.data, None, "Third node should should have 3 as data."). The test makes the entire test attempt to fail.

  • I meant that someone already posted a java translation, but it's not up to recent standarts (now random tests is a requirement). The only person who can choose to approve it is the author, however.

    IDK the exact requirements to submit or edit a translation, but I think you must've finished the kata in another language and have a certain amount of honor. You should see 'Add new' option in when selecting language up top.

  • Asking is allowed where i live; instead of assuming i knew translating Kata is a volunteered job and answering that way, acting like i asked you personally to solve this Kata for me, you could've just said to me what you just said and suggest that i could work on a translation, since nobody was going to translate this themselves (except maybe for the author of the Kata, like B1ts mentioned).

    Still, thank you for your time and have a nice day sir.

  • Can you not immediately mark the question as resolved since it's not resolved yet?

    Translating katas is a volunteered job. Asking people to do so will achieve nothing.

  • Ok thank you for your reply; in the meantime i'll try to translate it offline and see if i can solve it. Have a nice day!

  • There is a java translation pending, but it doesn't have random tests. But neither does any other translation.. except C++. Either way, I think the kata creator is still active, so you'll have to wait for author's action.

  • I don't think i have the knowledge to do it nor the grants to post it here.. (?).
    Can you not immediately mark the question as resolved since it's not resolved yet? Plus a little bit of mild manners would surely be appreciated by everyone ^^.

  • Translate it yourself?

  • Good morning folks, can someone please post the Java version for this Kata?
    Best regards, have a nice day

  • i'll probably start checking beta, issue-filled katas' discourse before solving. 15 issues, more than 5 years and i wonder why it hasn't been retired.

  • I'm passing all tests except for needing to "Throw an exception". I have an error handler when the index is out of bounds and throw a new error, but the test suite isn't registering this error.

  • Loading more items...