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.
Do you have any benchmark about your claims?
I'm the only one doing this solution in the whole platform! Are you kidding me?
https://www.codewars.com/kata/reviews/5220c5750b1ba099360003e2/groups/6592621718069100013f0ac7
And it's so far from this one, you have mentioned:
https://www.codewars.com/kata/reviews/5220c5750b1ba099360003e2/groups/55213b8f48b3baa1b90009ff
This solution, there is only one who has the same solution as me, he solved it before me as his last visit is at 2023, but that doesn't mean I have copied it from him!
https://www.codewars.com/kata/reviews/52b7ed099cdc285c300001d0/groups/64ee72de3078400001e80bd4
These 2 solutions are the only valid solution for each problem:
https://www.codewars.com/kata/reviews/59b82d99aee0c7744000004a/groups/59b82d9aaee0c7744000004c
https://www.codewars.com/kata/reviews/591e83ce66ef3bd8d300085f/groups/5bbd416016a8f134a20004ca
So all users must do them in the same way to pass, because if it isn't in the only same way, it's not correct!
Don't expect any another reply from me, I'm currently out of this platform, as you are doing your best to spoil the community here..
Can you suggest how to prevent users from using
require
?debounce
function is designed to enhance performance by controlling the frequency of function executionsThe above sentence is 100% correct, preventing the function from excution if nobody has called it for a specified amount of time, can affect the frequency of function executions!
And yes, I always use ChatGPT to validate my solutions, rephrase kata description, and suggest edge cases for testing, is there any problem with that?
Also, you cheated on several blue katas you completed by copying existing solutions:
The rest has no direct duplicates, but I wouldn't surprised if you used ChatGPT to "rewrite" the top existing solution (read: most copied solution), like how https://www.codewars.com/kata/reviews/5220c5750b1ba099360003e2/groups/6592621718069100013f0ac7 resembles https://www.codewars.com/kata/reviews/5220c5750b1ba099360003e2/groups/55213b8f48b3baa1b90009ff.
Is this kata written by ChatGPT? There are a lot of misinformation in the kata, the description is weirdly nonsensical, and the terminologies are obviously used incorrectly. For instance:
What this describes is throttling, not dedounce. Debounce doesn't control the frequency of function calls; it makes a function only execute its body if nobody has called it for a specified amount of time.
(See also: https://stackoverflow.com/a/35290646)
The tests never test this crucial mechanic. In fact it doesn't even test if a debounced function can be called more than once, so it's just a fancier version of
setTimeout
.This didn't specify which argument set should be used when the wrapped function is called multiple times. The expected value is the one from the latest call.
this
preservation is not tested.oops ;)
Cheers
kata was retired
I'm afraid a kata about simple list filtering has already been done too many times. This makes this kata a duplicate of existing kata's.
Do you have some time to read the problem description?
You may use either linear search or binary search.
The performance check is useless, a linear search can pass the tests just as fine.
I think everything is okay now after adding the last test cases, and modifing the existing ones, besides modifing the task description and solution.
Now, I'm testing the mutation of the original array, thanks for the valuable advice.
I have added more test cases, added random testing, and modified large leaderboard test.
Feel free to inform me if there is something wrong.
I can add random testing, but what about
Insufficient fixed edge case tests.
? do you have any different case that needs to be tested?Also can you explain what do you mean by
Large test is vulnerable to input modification.
?But I haven't specified to mutate or not, everyone can go for the suitable solution he needs, sometimes mutation is better than returning a new value, because it can keep the number of variables low, and also the memory usage, am I wrong?
Loading more items...