[Community Puzzle] Mountain Map Convergence


Send your feedback or ask for help here!

Created by @Crypticsy,validated by @Smelty,@AntiSquid and @Husoski.
If you have any issues, feel free to ping them.

Test cases 5 and 7 have some unnecessary spaces after the last input value

Not a big deal, but in C# it causes FormatException if you parse it like
var heights = Console.ReadLine().Split().Select(int.Parse).ToList();


It should be fine now.

1 Like

This isn’t really related to this puzzle, but does anyone know if there’s any way I can find the code I used to validate this puzzle? It didn’t get moved over when the puzzle went live, and I wanted to see if there was a nicer way to do the “ascii art” output.

The problem has already been raised and it seems that it’s lost forever.
I hope that they change that behaviour some day cause it can be very irritating, here you just lost a script of a few lines but imagine losing hundreds of lines of an expert puzzle…
So right now, the only way is to save your script on your computer before it’s validated.

Okay, thanks. Now I know.

Maybe you can find it if you search for the puzzle on https://eulerschezahl.herokuapp.com/codingame/puzzles/ and find the contribution there?

When a puzzle is accepted, click on the yellow line “See the contribution”. On the newly displayed page, click “Test in IDE”. Your code is here waiting for copy/paste

I had exactly the same question on exactly the same problem. Looks like it wasn’t archived on eulerschezahl.herokuapp.com either. Well it’s better to have this learning experience on an easy puzzle, I guess. Edit: Nevermind, looks like it was archived after all. Sweet!

is this an easy problem to solve?
to me it seems more like a medium level puzzle

I’m struggling with the ‘Familiar’ test only inside the challenge validator, so I cannot see what is going on
It is passing in all the other tests, but can’t seem to get this one right.
Anyone got an example of where it might fail ?

Also, can we add this test case to the list for future reference?

Try using your code to draw mountain maps for combinations of heights 1 and 2 of length 4 or more (e.g. 1 1 1 1, 1 1 1 2, 1 1 2 1, etc.), and see if you fail any of those :wink:

1 Like

You are tottaly right, the test “1 1 1 2” does not behave correctly. THANKS!!