Hey, please take a look at my C translation for this Kata.
If I'm not mistaken, this way the csharp block will be shown for all languages. The first ("default") block should have some language tag.
Moving count($a) outside of the loop will improve performance
Just finished the three in this series. Great job! I hope you find the time to keep going with this series!
Is there a practical reason for the 1e3? Other than well-deserved style points!
I understand this but it does not address my issue. The original linked list that is used to test for splitting linked lists with 6 Nodes (so returning two lists each with 3 Nodes) has 18 Nodes in it. So my code returns a Context object of two linked lists each containing 9 Nodes.
More info for anyone looking at my solution:
Set $debug to true, and one set of tests pass.
Set $debug to false and the opposite sets pass.
Issue 1: Solved.
I'm failing the test at "testInvalidName1". I'd like to echo out the name that I'm recieving from the form. However it looks like this is not possible. I'm trying to debug my code and trace back why mine is printing an empty string when it shouldn't be empty. Help would be appreciated. (The code was returning earlier than I thought and printing thus an empty string was printed).
Issue 2: I'm failing the last test. It seems to remember the values from the warm up excerise and not the values set in the function. All other tests have been passed. What am I missing?
Good one! :)
You know how to identify a bad coder? You look for eval() function it people's code, if u find it, you found a bad coder
I added a random color check.
I'm pretty new to JS but have a few kata's under my belt now. I have an idea how to approach this but if anyone knows a resource or link that might help, please point me in the right direction