Loading collection data...
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.
Thank you! Since I am new to this I didnt know I had to be careful with this stuff, I believe its solved :)
Random tests are vulnerable to input modification.
I'll change that, thank you!
Would add some fixed test cases for invalid board - type 2, or make them occur more in random tests.
I see solutions that don't count with them and they can still get through on luck
This comment is hidden because it contains spoiler information about the solution
Resolved.
Ah for sure I agree it's a classic problem - tbh I don't know if LC "invented it first" (it's possible because it's one of the oldest problems on their site) or maybe they themselves took it from a classic algorithms textbook or something.
The real issue is that you're using their assets directly - name, image from site, exact test cases and limits etc. That's where I think the real issue is, for actual legal reasons (I'm not a lawyer obviously but there is a page on the Codewars Github where "copied" katas are tracked and removed that I have seen).
Probably the best thing to do is chat with a site admin/senior user - they are friendly! - and you can find them in the Codewars Discord (link in sidebar on left) and ask them their thoughts; maybe then you can transform the kata to make it into "your own version" that is sufficiently different.
Cheers,
I really thought this was a classic problem, not firstly made by leetcode. I understand the issue. Since I cannot remove this kata should I tranform it into another different kata or how should I proceed?
This is https://leetcode.com/problems/container-with-most-water/ which is a direct copy of another site which isn't allowed I'm afraid.
Please see:
https://docs.codewars.com/authoring/guidelines/kata
"Do not use problems from other sites, unless it's allowed by that site's licensing policy and/or terms of use. Explicitly give appropriate credit if your kata is based on, or inspired by, someone else's work."
Ah now I remember - it was from here:
https://leetcode.com/problems/container-with-most-water/
which is kind of a bigger problem than being a Codewars duplicate :/ I will reraise as issue.
@awesomead That's exactly the one I had in mind!
But (without spoiling anything) it turns out that it's not a duplicate - the linked 5 kyu is actually more difficult; what is being asked for is different and the solutions are different.
For example, for the input
[33, 9, 7, 6, 6, 6, 14, 14, 14, 15, 21]
the 5 kyu correct answer is 70 while for this kata the correct answer is 210.Yes, this is effectivly an identical problem to this, from what I can tell:
https://www.codewars.com/kata/595db7e4c1b631ede30004c4
I have come across similar problems but not a duplicate yet. Something with "water pouring" or "height map" in the title I think.
This comment is hidden because it contains spoiler information about the solution
Cool kata! But I'm 99% sure this is a duplicate... but I can't find the kata I'm thinking of in the catalogue (probably because it has an "obscured" name, or because it tries to change the "story" of the problem so that people can't easily search using words in the title).
If it helps any reviewer search through their solved katas:
*
or something like that.I'll keep searching in the mean time, and won't raise as Issue until I confirm one way or another.
Loading more items...