I’m currently 712th using a very simple approach: look for the closest rune (in terms of ‘<’ and ‘>’) whose letter would require the minimun steps to reach the desired letter.
I’ve only used loops to reset runes and move from ‘blank’ if it’s “cheaper” than moving from an existing letter.
Doing this, I can just look at a single input character at the time.
I understand that I won’t be able to reach the top spots just but doing this, but I’m curious if anyone used a similar strategy and did better than 712th.
Yep. I will need to find a criteria to determine that the cost of “non zero” initialization will be offset by the savings of having some letter “already on the board”. Probably the frequency of each character plays a role here.
Hi there
I ve got some questions about this very interesting puzzle :
the same code can produce different results and it seems to be because of execution performance that are not always the same : is there a way to handle this ?
because of this, I have sometimes submitted the same code several times , and it seems i reached the submition limit (100) . Is there a way to submit again ? because I still have some improvement to check
thanks for any answer
same as Narmand - I’m getting random execution errors on the tests, it is as if something was broken “server side”, can someone from codingame check what is going on here ? this is also occurring with my old code submission that used to work perfectly …
It was in C++ as well. I did not see the same issue on any other puzzle.
The day that I posted the message above, I also mentionned the issue in the french real time chat channel. Some people there told they were experiencing the same issue on other puzzles. Somebody from CG then said he was making changes in the infrastructure that were probably at the origin of the issue. A few minutes later he asked me to check if the issue was still occurring on my side : it was not !
Sorry, I don’t remember who he was.
a simple [>+] will for example initialize all runes (except one) to Z. [>-] will initialize all runes to A. You can tweak this examples to initialize with other letters.
I just achieved the most basic implementation. Insted of going in exploratory mode, I would like to know if there are some general theory/algorithm that could be applied to this puzzle so I can read stuff about it.
do you think it is possible to optimize blocks of 26 characters by positioning the correct letters and making a loop [>.] after that? in certain cases?