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.
jake@codewars.com
@Sejiko
donaldsebleung is a well known user of the site and of the few I just checked, he is the original PHP translator of the kata given. He hasn't cheated, in fact he has honorably created new content on the site for others to train on. Please email me your cheat technnique so that I can verify if its new or not.
Extra note to all: Although not documented on this page (or anywhere on Codewars), the current policy is that if the site maintainer (i.e. @jhoffner) discovers anyone cheating and/or plagiarizing in any manner (e.g. runner cheats, rampant plagiarism through use of an alt account or through Googling "released" solutions by other Codewarriors), the offender will immediately be banned from using Codewars for an indefinite period of time, his/her rank will be reset to
8 kyu / 0%
and his/her honor will be reset to0
. So whatever you do, don't cheat (it doesn't benefit anyone in the first place anyway - what fun is there to "pass" a Kata without actually solving it?) ;)@Sejiko,
Instead of accusing me in public without my knowledge based on your faulty assumptions, perhaps you could have directly emailed @jhoffner (maintainer of this site) in private regarding suspicions about a potentially cheating user? What you just did on this thread was highly dishonorable regardless of whether your claim is true or not because I did not receive any notification from conversations in this thread so I was not given a chance to publicly defend myself against your accusations which is what some would call "backstabbing". I sincerely hope such an incident would not happen next time.
Furthermore, I have more than substantial evidence that I am innocent of cheating, at the very least in the PHP version of the "Find the unknown digits (
4 kyu
)" Kata. The only reason my one and only submitted PHP solution to that Kata is 100% identical to the reference solution used in the random tests is because I was the PHP translator to that Kata; hence, I would naturally use my own "Complete Solution" as the reference solution to validate against the user solution in the random tests. If you do not believe what I am saying, just click the "Add Translations" button on that Kata, scroll down to the PHP translation and check the author of that translation.However, seeing as you also submitted exactly one PHP solution to that exact same Kata which is identical to my submitted solution (minus a trailing newline or two), I'm starting to wonder if you utilized the cheat yourself and unfairly gained honor and rank progress from it as a result. For the moment, I'll assume the better of you which is that you forfeited the PHP version of that Kata, saw my solution and then only copied, pasted and submitted my final solution afterwards which would mean that you did not gain anything from it.
Signed,
@donaldsebleung
Of course: https://www.codewars.com/kumite/59bb5cfdcb7fb43c7d00008b?sel=59bb5cfdcb7fb43c7d00008b (check the identity of the PHP translator to this Kata ;) )
You mean hardcoding return results? That's not called cheating, that's just kata tests being bad and lacks in random tests.
Its true,writing unnamed function is slighty faster but code is a little messy after.
If function is really simple like multiply example its good place for unnamed functions,when you know that you will not use it again.
In JS alot of people use unnamed functions in sorting arrays too.
Its good to have more options how to pass/write functions :)
Glad you're enjoying my Kata Series :D
As discussed in the Lesson in this Kata, various advantages of interfaces include:
That being said, if you are working on a small PHP project by yourself which involves only one or two classes, it is unnecessary and indeed bad practice to define interfaces for those classes to implement.
Hope this answers your question :D
If you print too much, it may happen in certain cases. I already accidentally passed too katas with wrong solutions while trying to debug.
Try without using a factorial function.