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.
Please read this: https://docs.codewars.com/training/training-example#writing-a-solution
Your solution is not exactly correct, it's not a bug in the kata.
To me, the current setup is rather OK. The goal of random tests in unpredictability of outputs, and I think that even if there are separate tests for two types of input, they are still sufficiently unpredictable. Ideally, the solution here would be two functions, and not a single function doing two tasks.
I know where B4B comes from but I think that it's difficult to address all bad ideas users can come up with, and just the fact that boolean return values are somewhat special and require a bit different handling does not necessarily have to affect all test suites.
For this kata, I think that both types: shuffled, and separated, are OK, and I would not dismiss any.
Fixed in this fork
But 7 is a narcissistic number? I also cannot see the 1654 being used as an example anywhere, where do you see it?
It seems to work for some users, but not for others? It can be related to your ISP, can you check if the image appears when viewed over VPN, or from another network?
Missong quote in
actualsuggests that your answer is wromg after the last character: maybe it has a newline, or messes up null termination somehow, or does not set the string lenght correctly for some reason.
"WTF?" about what part, exactly? also read this paragraph: https://docs.codewars.com/training/training-example/#writing-a-solution and this paragraph: https://docs.codewars.com/training/troubleshooting#.print-vs-return
One thing wrong with the below code is that it's not properly formatted. Please read this paragraph on how to use code formatting in Codewars discourses.
As promised, I am going to restore your authoring privlilege, but please have following in mind:
#reviewingchannels of Codewars Discord.
Your authoring privilege has been restored. Please use it wisely.
I will pick option 2:
It seems like you don't want me to publish. It is fine if you don't want me to publish this. I just want the permission back. I can just keep it like this and get the pannel back. I'm fine with that if it's what you want. Tell me what you think.
PS. reply: Yes, we are talking about the java version. The Python version is long gone!
Thats because regex is not the best tool for this task, and getting regex to work for this task is tricky. If you tried to solve this kata with regex and it did not work for you, you most probably did a mistake many people do when using regex for this kata.
If I want to bake bread, and I do not want to use google or chatgpt to bake bread, what should I do? Are there any hints how to bake bread?
What I mean, there are only two possibilities: you either get the required knowledge from somewhere, or you go the philosopher/inventor/scientist way and distil the knowledge from the thin air by staring at the problem hard enough.
If you are asking where to find the required knowledge, then there is many possibilities: books, the Internet (in many forms), howtos, tutorials, other people. API reference docs are not the best way, because they are not meant to provide solutions. API reference is like an encyclopedia which answers question of "What is X?", rather than "How to do Y?" . Having hints in the kata itself would not be really helpful in the long run, because authors can never know what will be helpful for all users.
I personally think that the best source of knowledge are people smarter than me. Find someone who knows, and ask for advice. One good place to ask would be
#help-solvechannel of Codewars Discord.
There is this classic Polish comedy movie from "good, ol' times" where one guy gets fined at a border control point because he left Poland as 119 kg and arrived as 115 kg, effectively reducing Polish population. He got an additional fee because he declared his education level as "with a degree", and the fine for loss of every kg of an educated citizen is higher than of an uneducated one (see the clip in Polish (unfortunately no subtitles) ).
It seems that weighting people as they enter countries of Arstotzka bloc was a thing.
Loading more items...