• 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
  • 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
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
stackunderflow Avatar
Name:John
Clan:Unknown
Member Since:Dec 2016
Last Seen:Oct 2022
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (44)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • monkey19
    • commented on "Calculate Price Excluding VAT" python solution
    • 2 years ago

    if price is zero then the result will be -1

  • Custom User Avatar
    • sid114
    • resolved a question on "up AND down" kata
    • 3 years ago

    closing

  • Custom User Avatar
    • Opabinia
    • commented on "up AND down" kata
    • 4 years ago

    It's a very strange proposition for a kata. I, too, came to search the comments for an explanation!

    I almost didn't want to to do it because it felt so artificial, like something I would never actually want to do. Lots of people rated this highly, however, and I DO want to do it, just... not sure which language to choose at the moment.

  • Custom User Avatar
    • ozichukwu
    • commented on "Small enough? - Beginner" python solution
    • 5 years ago

    The solutions with all works in a similar manner

  • Custom User Avatar
    • stackunderflow
    • commented on "Chess Fun #1: Chess Board Cell Color" kata
    • 7 years ago

    I like the images given in this kata. But it really shoudn't be a 6kyu kata. It's way too easy.

  • Custom User Avatar
    • Voile
    • resolved an issue on "Sum of a sequence" kata
    • 8 years ago

    Expected and actual params in the fixed tests were flipped. Fixed.

  • Custom User Avatar
    • stackunderflow
    • commented on "Sorting on planet Twisted-3-7" kata
    • 8 years ago

    Hi, I have a suggestion here. Since the function prototype is vector<int> sortTwisted37 (vector<int> numbers);, this warning is redundant in the kata description,

    You should not modify the input array!

    vector<int> numbers is passed by value, so there is no way to modify it.

  • Custom User Avatar
    • stackunderflow
    • commented on "Count the Digit" cpp solution
    • 8 years ago

    It's not memory efficient and involves lots of string concatenation. I don't recommend this.

  • Custom User Avatar
    • HighPriestCthulhu
    • commented on "Base64 Encoding" kata
    • 8 years ago

    It's not broken, you just aren't accounting for padding.
    The random tests are encoding it, then decoding. However due to the way it encodes, strings who's length is not divisible by 4 will have padding added in encoding.

  • Custom User Avatar
    • stackunderflow
    • created a suggestion for "Simpler Interactive Interpreter" kata
    • 8 years ago

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

  • Custom User Avatar
    • depperm
    • commented on "Image Processing: Gaussian Blurring" kata
    • 8 years ago

    If you look at the example I try to show what I mean. Say you have an image:

    A B C
    F G H 
    K L M
    N O P
    

    G and L are the only pixels with 8 neighbors present but each pixel still needs 8 for the filter to work. A only has 3, so the other 5 have to come from somewhere else; for this algorithm you should use the edges/corners own values. So with A the other neighbors in relation to the whole image (besides B, F, and G) will look like:

    A A B
    A A B C
    F F G H
      K L M
      N O P
    
  • Custom User Avatar
    • stackunderflow
    • created an issue for "Base64 Encoding" kata
    • 8 years ago

    Can someone fix this kata? Random test has been broken for so long. Why don't the author use standard base64 module as backend to test?

  • Custom User Avatar
    • stackunderflow
    • commented on "Small enough? - Beginner" python solution
    • 8 years ago

    I think this is better than highly upvoted solution. It doesn't have to loop through all the items if one item fails.

  • Custom User Avatar
    • stackunderflow
    • commented on "Linked Lists - Push & BuildOneTwoThree" kata
    • 8 years ago

    Well, stack can be implemented with linked list, just saying.

  • Custom User Avatar
    • stackunderflow
    • commented on "Thinkful - Object Drills: Puzzlebox" kata
    • 8 years ago

    Ultimate question! Well done!

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...