• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Career
  • Opportunities
    Find your next career challenge – powered by Qualified Jobs
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Log In
  • Sign Up
el-iot Avatar
Name:Elliot Rampono
Clan:enterthegungeon
Member Since:May 2019
Last Seen:Sep 2021
Profiles:
Following:2
Followers:2
Allies:2
View Profile Badges
Ad
Promoted
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (21)
  • Replies
  • Authored
  • Needs Resolution
  • Default User Avatar
    • karabacak
    • commented on "Flatten A Nested Dictionary That Contains Lists" kata

    Challenging! Especially the possibility of a key's being int or string makes it even more compelling. Nice kata.

  • Custom User Avatar
    • el-iot
    • commented on "All Balanced Parentheses" kata

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

  • Custom User Avatar
    • dolamroth
    • created an issue for "Binary Range Extraction" kata

    In the task n is said to be in range [3, 30], but random tests have examples with n==1.

  • Default User Avatar
    • Spindle
    • commented on "Binary Range Extraction" kata

    In my opinion "a range of numbers" is an ambiguous description. Your examples show a range of consequitive numbers, and the Kata you are extending also uses the word "consequitive." It would be great if the description made that clear.

  • Default User Avatar
    • el-iot
    • commented on "Longest Common Subsequence" kata

    Ahh you're right :) my mistake

  • Custom User Avatar
    • RobsonMoon
    • resolved an issue on "Longest Common Subsequence" kata
  • Custom User Avatar
    • RobsonMoon
    • commented on "Longest Common Subsequence" kata

    This is okay, because of this part of the kata description:

    The terms of a subsequence need not be consecutive terms of the original sequence.

  • Default User Avatar
    • el-iot
    • created an issue for "Longest Common Subsequence" kata

    There's a small mistake in the description section of the python translation of this kata:

    Example subsequence

    Subsequences of "abc" = "a", "b", "c", "ab", "ac", "bc" and "abc".

    "ac" is not a subsequence of "abc" :)

  • Default User Avatar
    • lechevalier
    • created an issue for "Flatten A Nested Dictionary That Contains Lists" kata

    Lack of small preloaded tests, especially tests on arrays.
    Debugging huge random tests is quite a pain.

  • Custom User Avatar
    • Blind4Basics
    • commented on "Binary Range Extraction" kata

    see above (manual notification)

  • Default User Avatar
    • el-iot
    • commented on "Binary Range Extraction" kata

    Hey :)
    I've added random tests now - sorry about before I really misunderstood what was meant by random! Let me know if you think the test-cases help the strength of the kata - I'd love to get it published. I can keep investigating more efficient solutions too.

  • Custom User Avatar
    • Blind4Basics
    • created an issue for "Binary Range Extraction" kata

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

  • Custom User Avatar
    • Blind4Basics
    • created a question for "Flatten A Nested Dictionary That Contains Lists" kata

    what about the possibility of having a list as first layer? (note: it would need a slight change in the description)

  • Custom User Avatar
    • Blind4Basics
    • commented on "Flatten A Nested Dictionary That Contains Lists" kata

    I just looked at the test suite and...

    x/

    those are not random tests, they are fixed tests. => look at some others katas you solved (recent one if possible) and study how the random tests are done.

    Note: in your case, you'll have to compute the expected solution before you send the data to the user (or you'll need to make a deep copy of the structure)

  • Custom User Avatar
    • Blind4Basics
    • created an issue for "Flatten A Nested Dictionary That Contains Lists" kata
    {..., '2': []} should equal {..., 2: []}
    

    This behavior isn't specified in the description (and is highly arguable): the original key was an int, but it hasn't been converted to a string in your solution. For now it's undescribed, but moreover, that sounds inconsistent to me (because if the first key is an int and you find another layer below, it will be cconverted to a string. So for homogeneity purpose, all keys in the output should be strings).

    Side note: currently, the way the test suite is splitted (is it even splited..?) isn't correct: everything appears in a "random tests" block. => ?
    Some readings you might find useful: https://github.com/Codewars/codewars.com/wiki/Codewars-Python-Test-Framework-V2

  • Loading more items...
  • © 2022 Codewars
  • About
  • API
  • Announcements
  • Privacy
  • Terms
  • Contact
  • powered by

Confirm

  • Cancel
  • Confirm

Collect: kata

Loading collection data...

Add To My Collections
    • View
      Remove Add
    You have not created any collections yet.

    Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.

    Get started now by creating a new collection.

    You must wait until you have earned at least 20 honor before you can create new collections.

Set the name for your new collection. Remember, this is going to be visible by everyone so think of something that others will understand.

Create & Add New Collection