Ad
  • Custom User Avatar

    I think it's the easiest problem here:)

  • Custom User Avatar

    I just tried and AI returned me working solution immediately, and I am not really sure what is the problem here, I'm sorry :(

    But I admit that things like recursion and type checking might put it in the range of harder 7 kyus. Maaaaaybe the low end of 6 kyu would not be wrong either. But even then, I don't think that 7 kyu rank is very wrong, and rather justified.

  • Custom User Avatar

    What is the point of using AI in a service whose sole purpose is to train programming?

    And you can't even brag because your own comment gives it away...

  • Custom User Avatar

    Oh come on, I said literally zero words about me to show off how clever I am :(

  • Custom User Avatar

    I'm rather surprised to learn that AI can't handle anything above an 8 kyu problem.

  • Custom User Avatar

    Dear @hobovsky,

    If you work for Codewars, then of course you're welcome to continue commenting on my comments. But if not, please don't waste MY TIME!!! Your comments add no value for me. You're just showing off, and I couldn't care less how clever you think you are.

    Thanks for your understanding.

  • Custom User Avatar

    Well, there is 3207 solutions from humans which did work. Maybe try writing one by yourself?

    I would also like to remind everyone interested that submitting AI generated code as solutions is agains Code of Conduct.

  • Custom User Avatar

    3 solutions from AI doesn't work!
    Are you sure it's 7kyu??!

  • Custom User Avatar

    Python:for n = 7,
    sequence = [53, 29, 87, 99, 7, 7, 24, 9, (67, 84, 38, 86, 87, 12, 0), =87=, 28, 16, (55, 13, 86, 57, 34, 31, 89), =55=, 85, 75, 52, 93, 96, 44, 59, 56, 5, 32, 17, 22, (79, 30, 84, 52, 64, 53, 94), =30=, 85, 0, 3, 81, 98, 23, 49, 87, 48]
    test says 3 should equal 1
    but we have 3 matches:
    [67, 84, 38, 86, 87, 12, 0] 87
    [55, 13, 86, 57, 34, 31, 89] 55
    [79, 30, 84, 52, 64, 53, 94] 30
    What I am doing wrong ?

  • Custom User Avatar

    I don't think it's ok that some test cases exceed 1MB (while still allowing plenty of incorrect solutions) .. and it's kind of silly that thousands of people use only a couple handfulls of names as well.

  • Custom User Avatar

    Question: Is O a ssoss?

    Issue1: this is not tested (python), specifically that a daughter comes before the seven sons

    Issue2: description is vague on what the result should be

    {
        "name": "A",
        "gender": "male",
        "children": [
            {"name": "BBBB", "gender": "female", "children": []},  # <- a first female child followed by 7 male. allowed?
            {"name": "B", "gender": "male", "children": []},
            {"name": "C", "gender": "male", "children": []},
            {"name": "D", "gender": "male", "children": []},
            {"name": "E", "gender": "male", "children": []},
            {"name": "F", "gender": "male", "children": []},
            {"name": "G", "gender": "male", "children": []},
            {
                "name": "H",
                "gender": "male",
                "children": [
                    {"name": "I", "gender": "male", "children": []},
                    {"name": "J", "gender": "male", "children": []},
                    {"name": "K", "gender": "male", "children": []},
                    {"name": "L", "gender": "male", "children": []},
                    {"name": "M", "gender": "male", "children": []},
                    {"name": "N", "gender": "male", "children": []},
                    {
                        "name": "O",
                        "gender": "male",
                        "children": [],
                    },
                ],
            },
        ],
    }
    
  • Custom User Avatar

    there is still this rather confusing "tip":

    For a seventh son to be a seventh son, there must not be any daughters in the line leading to him. There may be daughters after him, though.

    which I don't think my solution adheres to, I'm on a phone though so I struggle to figure out what's what

    and uh, https://www.codewars.com/kata/reviews/5a15fed357f0af5e19001946/groups/683984554f242c9c07583249 looks to me like it allows 9th child starting with 2 female to count as 7th but I guess that gets to pass? haven't tested it though. and that might be correct but it's not what mine does and that should be tested.

  • Custom User Avatar

    As a new python developer, this solution helped me immensely. Thank you.

  • Custom User Avatar

    It's been so hard for 6kyu =)

  • Custom User Avatar

    Fixed (8 years later :D)

  • Loading more items...