[221] XWords issue

Back to General discussions forum

Signum_X     2025-06-03 20:19:08
User avatar

Hello,

I got an algorithm that works for this problem but I think there is an issue.

If I understood correctly, all unknown words must exist in the attached files. This includes one letter words, right? Meaning one letter unknown words must be A or I (as the file is now).

Then how about the case in the example itself (see below)? Similar thing happens for test data, in my solution I had to change the file from just the letters A I to any letter A-Z to get it to pass.

_O_PO_#_U_
A#O##Y#A#Y
_I_E#L#Z#E
I###C_Z_E_
_O_S#L#E##
##R#S#G_U_
_U_L_Y###O
U#N#O#S___
A#C#K##_#I <--- Watch the _ here
_I_#_EN_E_

Solution:

COWPOX#JUT
A#O##Y#A#Y
LIKE#L#Z#E
I###COZZES
FOPS#L#E##
##R#S#GRUB
QUALMY###O
U#N#O#SHIV
A#C#K##U#I <--- Why U when the file specifies A or I?
GIE#YENNED
gardengnome     2025-06-03 21:52:44
User avatar

No it does not include one-letter words.

Signum_X     2025-06-04 03:57:01
User avatar

I see, but then that should be stated in the problem, was a lot of headache debugging this especially since the file mentions that one letter words should be A or I.

Rodion (admin)     2025-06-04 06:45:39
User avatar

Sure, let's include such a note - I never heard of one-letter words used in crosswords, but let's reduce confusion!

Signum_X     2025-06-04 08:48:37
User avatar

Saw that a note was included. Thanks, that will surely help someone else.

Indeed one letter words would not be used but still it made some theoretical sense since A or I could be considered valid words (A book, I write).

Rodion_Gork     2025-06-05 06:45:02
User avatar

It may be curious to invent a type of cross-words where 1-letter words make more sense :) though the language with more such words whould be picked, probably

Please login and solve 5 problems to be able to post at forum