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.
The instructions speak of square matrices but the test data for the attempts contained non-square ones. This took me some time and it seems to me like a bug. (This was the Rust version.)
Groovy Translation
My TypeScript solution keeps failing large tests with slightly wrong sum, and sometimes small tests as well, while everything else passes. Any idea what's happening?
Please do not post solutions in kata discussions.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I actually solved it using my solution. the problem was that i was erroneusly using pointers on slices. i studied more how golang passes slices and what's actually the "value" passed between functions. this would make an unstable behavior of the code. still i haven't figured out why locally it was constantly passing everything. solved by just removing pointers.
I really thank you for your quick responses. this was really a my bad.
You can try one (or all) of following:
#help-solve
channel. It might be easier to find someone to help there.i don't get it, i'm currently printing the solution with your tests, multiple times, i keep getting the right answer (9) locally. my code seems to keep working after changing the order of the inputs. could i share the code somehow without having
to spoiler others?
Your solution seems to not be correct, it behaves in a stange way for following test cases:
Your solution returns different answers for the same set of intervals, given in different order.
Your solution not passing tests is not a kata issue.
i feel like my code works fine, yet i cannot pass any test here. copied all the tests i saw in the comments and the onse in the problem details and it work for me. i don't get it, i don't have the problem of swapping the intervals. plus i printed the inputs and locally it still get the expected value. yet running it here won't work
No worries, best of luck with your other katas and solutions!
Yeah, it took reading over it 15 times, but i finally realised my mistake, Just a downside of dyslexia...
Are you 100% sure you've tested the edge case where the word length is equal to 5?
Loading more items...