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.
Every conversion I've tried so far results in -> "\u0086" where the tests require ->"\x86".
Casting with string(), converting with strconv and fmt.Sprintf all produce "\u0086".
Trying to create a new string results in "\x86".
Any hints you can give me ?
In Java I encountered no similar issue and solved it in a few minutes.
(Now that I can see the hidden issue, it's the same as my question)
I'm also fighting with the task, whatever I do I just cannot make it return the string literal rather than utf encoded string. (
Shit, solved, it was, actually, easy :)
I got this output (and failed the final tests) in exactly the same way because I was trying to use
string()
to cast arune
. In order to pass the randomized test, the code needs to be able to account forrune
s greater than a single byte.I actually only had to make minimal changes to my code to pass the tests otherwise, so I'm leaving this for anyone else who may be tripped up by this - hopefully not spoiling too much :)
Thanks! I mark issue as resolved.
Found the problem and fixed it. Now your solution passes but are you sure that the product of two int64 is always an int64?-) Seems you are lucky since n and p are not very big here.
Tell me if you succeed and mark the issue as resolved if you do it.
"Mul" is in "math/big"; I import "math/big" in my solution and in the tests so I don't understand where the problem comes from. If you want you could put your solution (marking it as spoiler) and I will try to understand what happens. Do you pass "RUN SAMPLE TESTS"?
Don't you import "math/big" in your solution?
i've made those changed so you should order by day then department-name.
This comment is hidden because it contains spoiler information about the solution