Very clever! but you're using a temporary array.
thats an evil solution
If we didn’t play by the rules, the .sort() method would be even easier.
No. It's up to the author should ensure its kata's requirements are enforced. If he cant, they are pointless.
Yeah, clearly NOT a solution for this kata.
much learned, thanks
This Works Because...
--> Functions are 'objects'
That means object.pair Where pair is property of object(function)
No /./g means replace everything and then they used call back function and it will received value which we will pass during function call ex. ( DNAStrand("ATTCA") ) and it will return value of opposite like pair.a will be equal to T
sorry for bad english but i hope it will help you
Most beautiful solution for a problem I have ever seen (46 katas so far).
all these folks trying to catch lol brilliant work man i feel sharper after reading your solution compared to mine
Very clean. I like it
What does the null do?