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.
I would greatly recommend joining Codewars Discord and its
#help-solve
channel, because it is much easier to discuss all problems there. But generally your issue boils down to: if the first element is different from the second element, how would you tell which one of the two is an outlier?Your solution has a bug which fails in some specific scenarios:
Some time ago I created a browser extension for Codewars which tries to help confused users and explain them, in a spoiler-free way, why their solution does not pass tests. Maybe you would find it helpful?
Additionally, if you want to post code and keep indentation, you need to use code blocks.
You just couldn't resist firing off one last shot, could you?
Three people went out of their way to clarify that you weren't being belittled-just welcomed as a newcomer. A moderator even took the time to demonstrate how things work here, and did so with genuine respect. Rowcased's closing remarks should have wrapped things up on a positive note.
But instead, you had to return with one final, nasty jab at other users-including the very mod who was trying to help you-by insinuating that only the last person showed you any kindness.
Enough with the victim act. Pull yourself together and dive into the many wonderful code challenges waiting for you. There's a world of learning and growth ahead! Remember, those who you feel are "belittling" you are actually here to help whenever you need assistance. If you want even more support, you can always turn to our Discord channel and ask for assistance.
Happy coding, newbie.
Honestly, I don't see any escalation here. I see a sharing of information void of disrespecful intention. There are a lot of people here willing to help.
Welcome to Codewars!
"newbie" is not a derogatory term, it just means someone who is new in some place, platform, or a community. You said yourself that you are new here, and there are some resources dedicated to help new users, like docs linked by dfhwze (including this paragraph and its third bullet point), or Codewars Discord.
I am not sure I agree with "other people post solutions here and no one else complained", and I believe that out of 10 posts with spoilers, 10 is hidden, and ~7 is accompanied by a reply asking to not share solutions. If you see a post with a spoiler which is not hidden, feel free to use the "Spoiler" button and mark it as such. While general hints like "dont get mislead by overcomplicated problem statement" and similar are generally OK, we try to keep discourses clean from blatant spoilers like a ready-to-submit code, because this is usually counter-productive.
I would also be extra cautious with posts like "hey, look at my great solution!" because it might not always be the case. Actually, the presented code, as short as it is, already contains a couple of problems, including stylistic ones, and performance issues. This is totally okay tho, because we are all here to learn. But there is a reason why sometimes longer and more complicated solutions are considered better, and there are good lessons waiting to be learned from them.
Yes, it just means "newcomer" to the platform.
newbie means beginner you said yourself you are new here
for newbies: https://docs.codewars.com/
How is spoiling a solution, when the purpose of this platform is to solve problems yourself, helping others?
Please don't post solutions in Discourse.