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 'ordered' string was probablly malloc'd so i had to put '\0' manually to every position of the string and everything works now.
Thanks, totally forgot to allocate more memory.
Im kinda confused, not sure what im looking at here. I pass 18 basic tests and it fails here:
The expression (as strings) (res) == (sol_res) is false: actual=
uhgwaukeiexgqcfvwufqjfeuxmhyhcyqztlpnkivdeatwvdrpihnnahzmdwiviojbzyozfybzyvuhyawvhzxhfviyfgtoubesohqiehgrrpydpjywhusbdaz expected=
uhgwaukeiexgqcfvwufqjfeuxmhyhcyqztlpnkivdeatwvdrpihnnahzmdwiviojbzyozfybzyvuhyawvhzxhfviyfgtoubesohqiehgrrpydpjywhusbdazywglphewvlbcpiyfontrrbocyxuzpjmmetnipreksfbgcpbqrughvjjhvtvjrgkloxtddxcvrtathriykdvumtawavesrpceakxdxonnhdwdutrexlnydojeinlorcthme`.This comment is hidden because it contains spoiler information about the solution
There seems to be something wrong with the compiler or tests. I ran the test and everything is fine but hen i attemped to solve it the results show some extra words that were never in the "words" string. Tried it on the local visual studio code and it gives the expected solution every time.
My bad. I kept re-reading the description and getting it completely opposite of the description, over and over again.
This comment is hidden because it contains spoiler information about the solution
I understand now. Thought that long long int can hold the same size values as unint64_t. Managed to solve the kata, thanks.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution