7 kyu

Training Time

443 of 3,672myjinxin2015
Description
Loading description...
Fundamentals
Tutorials
  • Please sign in or sign up to leave a comment.
  • GriezL07 Avatar

    Note the words "arbitrary number" in the problem statement. They mean an infinite number of arrays consisting of two digits.

  • Nilstorm Avatar

    This comment has been hidden.

  • ronaakk Avatar

    This was way harder than a 7 kyu imo, should be 5 or 6

  • LosBlobbos Avatar

    Description could use some work for CoffeeScript. f.ex spreads in CS has the ellipse on the right side of the variable

  • reserved.coder Avatar

    I found the description of the kata to be unhelpful, so I had to seek assistance from ChatGPT to understand the author's intentions.

  • laurelis24 Avatar

    I think this is a bit harder than 7. Spent some good time.

  • oldcoder Avatar

    that kata would be easier if there wasnt any instructions.

  • ejini战神 Avatar
    • Node 12 should be enabled (Refer this and this for more info)

    • Python new test framework should be used (Refer this & this for more detail)

    • Ruby 3.0 should be enabled (Refer this & this for more detail)

  • Redd5433 Avatar

    Kata's starting from #22 makes me think to forget about coding.

  • akar-0 Avatar

    I almost did not read the description, as I could not understand most of it and I felt lazy to try it. I looked at the sample tests in Python, solved it after guessing that actually we're just asked to return the array (first argument) swapping pairs of its elements which indexes are in the following arguments. Then I did the same in JS. I think description should be completely rewritten since the task is actually easy but description is completely misleading.

  • JakeWalker24 Avatar

    To much information to take in for 1 kata. I dont even know where to start

  • YuriiKopyna Avatar

    I dont understand the condition of the task. Is there another way to describe it?

  • FArekkusu Avatar

    Python tests check the user solution against itself.

  • FArekkusu Avatar

    Python 3 should be enabled.

  • JBallin Avatar

    Task requires using "spread operator" but there's no reasonable way to use that here and none of the top solutions have it. I spent a while trying to figure out where to use it before finally "giving up" and submitting my solution that used everything else. Made the problem frustrating/unenjoyable.

  • happyperson Avatar

    Oh my God. This was so hard and I did it without looking at the solutions!! I don't understand anything but I did it.

  • Javatlacati Avatar

    CoffeeScript Translation Kumited! Please Accept :D

  • thaki42 Avatar

    In the description, the term "deconstruction" is mentioned. I find no reference to that term in ECMA-6. Perhaps it could be the "destructuring assignment" ECMA-6 12.14.5?

  • ssaunders Avatar

    This comment has been hidden.

  • ssaunders Avatar

    This is great! I've been needing a good introduction to some of the new ES6 stuff, and this has helped. My one concern is that the instructions are hard to read in places. If you'd like, myjinxin2015, I'd be happy to make some suggestions.

  • GiacomoSorbi Avatar

    Translated into both Python and Ruby: be sure, in case, to approve Python translation first to avoid merge problems and let me know if anyone arises; great exercise to show similarities and differences among this languages in dealing with the same topics :)

  • matt c Avatar

    This comment has been hidden.

  • pwynn Avatar

    This comment has been hidden.

  • myjinxin2015 Avatar

    I always have a question that is why some people solve the kata but don't vote for it?

    Stats:
    
    Warriors Trained    6
    Total Skips    0
    Total Code Submissions    5
    Total Times Completed    6
    Total Stars    1
    Total Vote Score    0
    Total Up Votes    0
    Total Minor Issue Votes    0
    Total Major Issue Votes    0
    Total Rank Assessments    0
    

    Who can give me an explanation or a reason?