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.
Hello, Code Golf is a special type of programming that doesn't care about common best practices.
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
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.
You have to solve it first, and then you could vote
None
in how satisfied are you with this kata?No problem, glad you could solve it.
Write
console.log(meme);
as the first line of your function.There are several users answering questions for katas that aren't theirs (don't expect an instant answer, people do other things too). Have you tried to use
console.log
and checking what the input is for the failed tests?I've just run your code 10 times and haven't once got an error, what are you talking about?
@gtrstr .. Well , thanks for pointing out , I Think it was Pretty clear Don't remove Duplications since Over 160 Times Completed without mentioning this problem , But Any way , Description has been updated To include the note above ... Wish you all the best ON/OFF CW .. Regards .. Zizou
This comment is hidden because it contains spoiler information about the solution