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.
Glad you enjoyed ;-)
Nope, all translations welcome;-)
Thank you so much for this brainstorming kata. Through pain and suffering finally got it. It was a good experience for me.
Is it possible to implement this without using a for loop in other for loop.
Thx :)
no advance topic and (no recursion)
just understand complete problem and solve it step by step
just to get you boost
May I ask for some little hint, as a beginner? What advanced topic (data structure or something) do I need to know to complete this?
This comment is hidden because it contains spoiler information about the solution
Don't use too many loops, and make sure they are as simple as possible. Also, a change of approach maybe? You would've solved a 5kyu without performance measures, just know that.
I'm confused, is
a = [2; 2; 3]
b = [4; 9; 9]
supposed to return true or false?
Yes, if you click attempt, I can see your current solution so far.
Oh, thanks. I will try to optimize code.
And... I'm sorry. I am new to the codewars. Just would like to know.
You can see my unpublished code for this task, right?
Your code is similar to bubble sort. Bubble sort is one of the slowest sorting algorithms, so no surprise that your code is very slow. Try using less for loops and ecspecially not switching each one.
All I do is just sequentially look for pieces. But still my code is too slow. Can you inspirate me by any ideas?
It was not easy for me. Thank you guys!
Loading more items...