Ad
  • Custom User Avatar

    PHP Translation available for review. TY for the Kata :)

  • Custom User Avatar

    the description allowes it, but it's not tested in the fixed tests. => Donald?

  • Custom User Avatar

    WOW, okay that took me a while!

  • Custom User Avatar

    I quite liked this one, was stuck for a little bit until I re-read the instructions.

    2 live neighbours only keeps the cell alive, it doesn't bring a dead cell alive

  • Custom User Avatar

    What do you expect if you don't know even the most foundational terma in CS? There is only so much spoonfeeding possible. We don't explain what every English word in the description means, for example.

    Also, there is a thing called Google. Use it.

  • Default User Avatar

    @FArekkusu
    Adam is right this makes no sense. I still have no idea what to do. Heck I've never even heard of nodes in Python!

  • Custom User Avatar

    In any algorithm you choose there's a "compare 2 nodes for identity" part. You must be doing something wrong if all the nodes are identical for you.

    Are you sure you're moving through the linked list correctly? If you are indeed stuck in place, you'll be comparing the node with itself, hence "they are identical".

  • Custom User Avatar

    I tried exactly that in PHP but when you compare them they are identical, even the unique ID's I mentioned before. I just tried making every check I did strict and I did see different results but still can't get this. Think this may stay unsolved for quite a while

  • Custom User Avatar

    All nodes are different as all nodes are instantiated independently. If you don't want to search for the specific (classic) algorithm, you can simply go with a "store the nodes somewhere and check if I've encountered any of them already" approach (at least it worked for me in Python).

    This is as much as I can tell without spoiling anything.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Being unfamiliar with something != something is mysterious and can't be understood. This kata is very simple OOP + the simplest data structure; ideally you must be familiar with both, especially when you're doing a task which includes these concepts.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution