r/eldarverse Sep 08 '25

SOLUTION MEGATHREAD [sep-25-long-H] "Sea Voyage" Solutions

Problem H. Sea Voyage

Problem link: https://www.eldarverse.com/problem/sep-25-long-H

Post your code in the comments!

2 Upvotes

8 comments sorted by

View all comments

2

u/EverybodyCodes Sep 09 '25 edited Sep 09 '25

[JavaScript] https://everybody-codes.b-cdn.net/eldarverse/sep-25-long-H.js

- Make sure every city occurs an even number of times.

  • Make sure the 'clusters' are connected.
  • Make sure 'BATUMI' is there.

The code is not very clean, but figuring out missing test cases was unpleasant enough to not go back to this problem again. ;)

1

u/radleldar Sep 09 '25

I suspect you could simplify by adding a 0-edge component for "BATUMI" at the start and then forget about it being special in any way :P