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
👍
We need tests with numbers exceeding the first array.
This comment is hidden because it contains spoiler information about the solution
Why do you want to guess exact number? Look at the problem from the different angle, for example you have a combination ab as in examples, and result is 81. If you'll have to guess ANY number, it could be almost anything with two digits. In task description you have condition, that you're only interested in square numbers, and moreover, this number must be the largest possible, this is crucial. Performance is the main problem here, but you'll get over that.
Yeam im shuffling it untill it can or cant finds a combination, because i couldnt come with better idea :D
Kinda random and not much optimized but interesting idea :)
988 isn't a square number.
The "baa" example can be mapped to 988 to get the highest number.
looking a tthe code, it lookw like what you're saying is impossible.
On the other hand, the input could be something equivalent to
00x
, then producex00
. But the constraint is on the output, not the input. => ?it's any value that respect the definition. Example:
ab
could be 10,12,13,14,15,16,17,18,19,20,21,23,24,...,97,98, but not 11,22,...,99note: this is, without taking the square requirement in consideration, ofc
Yea like what this even means? "...where same characters always map to the same digits and different characters always map to different digits." Sound like a Chinese riddle:
"When the ghost is on the mountain,
When the millet is transported by women,
They will become rulers of the empire."
How to even start this kata??? How do i know what letter = what number? Is it always the same like a=1 , b=2 or i need to count it somehow???
Easy to understand
nice and simple
Loading more items...