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.
This comment is hidden because it contains spoiler information about the solution
your two questions have the same answer: you added logs to
encode(), but not todecode(). Your code correctly encodes"カタカナ"to"タモタワ", but then fails to decode the latter.This comment is hidden because it contains spoiler information about the solution
The “preserve the order” sentence was a leftover from a previous version of the kata and has now been removed. Thanks for pointing it out. The intended behavior is to output vertical directions (NORTH/SOUTH) before horizontal ones (EAST/WEST) to make this kata slightly easier.
What language? I don't see this happen in Python or Rust.
using namespace std;from the initial code#include <string>to the test suiteI added two examples of large values to the sample and fixed tests in all the translations.
Will do when I get a chance, probably Tuesday.
The condition "c to be less than int max" is really redundant, since all variables are ints.
I did add the following text to the description, which hopefully will clarify things:
Note: Although a, b, c are all integers, it's possible that their squares can exceed the integer bound in a statically-typed language. Such solutions should be included.
Hi eurydice5717,
I believe I have fixed the issue. Please try again and let me know.
Regards,
brodiemark
can't verify due to not having solved in c++/not seeing your code
but - this looks to me like you're mixing up different test cases, ie. you're showing the input of one test and the expected output of a different one. be careful with how you print and how you read the output.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
duplicate of this suggestion
Does that edge case (n=1, k=10) still exist? Right now, the description says (0 ≤ k ≤ n^2).
Loading more items...