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.
Description is really poor.
Keep downvoting, f*****s
This comment is hidden because it contains spoiler information about the solution
Seems counterintuitive.
Hello, Code Golf is a special type of programming that doesn't care about common best practices.
I think it is not a bad idea to increase the code length limit to 12 characters (inclusive). I know 3 ways to solve the kata with this char limit. And I would like to see other solutions.
This isn't just dumb, it's misleading; the lack of an actual function definition, and the encouragment of poor syntax. It's a horrible practice to define a function without assigning it as a function or a const. Absolutely terrible Kata. Big thumbs down.
Help is never too late, thanks!
2y later, but if you have the time read about topological sorting. https://en.wikipedia.org/wiki/Topological_sorting
This should be called PascalCase Method, camel casing does not capitalize the first letter of the first word, but the first letter of every subsequent word.
Once you sort odd and even numbers, you don't "glue" the list.
You have to place odd numbers where odds used to be in original list and even numbers in their respective positions.
Hmm, I guess you could start with how you would solve this in real life (by hand)?
Have you ever done one of those puzzles where you get a bunch of hints about runners in a race? It'll tell you something like
Sue placed ahead of Bob
andBob placed ahead of Tim
and so on.Sort of a similar concept. You can literally brute force this puzzle, there is no need for some clever algorithm.
Another way to solve problems like these is start off small and work your way up. Make up two triplets from a 4-letter string. See how those two triplets solve to the initial string. Go for more triplets for longer strings and you should eventually develop an alg or at least recognize a pattern.
If you don't understand, politely ask, if you understand but think others won't, then explain/propose a better wording. Insulting others or their work won't get you any help nor make you look good, quite the opposite actually.
What if I'm unsatisifed with how shitty the description is?
You have to solve it first, and then you could vote
None
in how satisfied are you with this kata?Loading more items...