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.
everything was much easier than I thought at first
This comment is hidden because it contains spoiler information about the solution
All right,thanks.
Don't be afraid to add spaces and line breaks to make the code more readable. Name your variables well so that they are called what they are.
When you're working with other people readability is the number one criteria for well written code.
This even goes for yourself, don't write code that you understand now, write code that you'll understand in a year, when you have to do maintenance on it. :)
因为格式化的原因 看不太懂你的代码的运作机制 。。。
不知道你是否陷入题目陷阱,题目意思有:相邻的元素,方向如果是相反的,则同时放弃这两步
我也陷入这这个陷阱导致有一段时间没解决问题
Hi! using ```{{ Your Codes Here }}``` to format your code and make it beauty
This comment is hidden because it contains spoiler information about the solution
A nice kata.
That's all right.
Yes, I got some troubles with it too.
On the output formatting paragraph, it says :
"The two subarrays are sorted in ascending order by their number weights if these weights are different, BY THEIR INDEXES IN THE STRING IF THEY HAVE THE SAME WEIGHTS."
The uppercase part of the paragraph is a lie.
The only sort you have to follow is the one on the weights.
Thank you, I just lost 30 minutes wondering why my solution wasn't working.
there is a bug in test;
This comment is hidden because it contains spoiler information about the solution
I had the same issue - i pressed 2 times submit final button and the second time my solution was accepted, but I did not change anything in my code - strange - repeated two more times - same result.
Thank you Steffen for your reply. I can understand my wrong logic now:)
You do not do a real sorting on the array.
The using of a Set reduces same numbers and so you loose numbers and your result is wrong.
Loading more items...