1209 - Wordfish

All about problems in Volume 12. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

1209 - Wordfish

Post by uDebug »

Here's some input / output I found useful during testing / debugging.

Input:

Code: Select all

ABCDEFGHIJ
KLMNOPQRSTUVWXY
ZPNCPLOIRQ
UNIQLETRS
PLMKNUYHBVGTFFEQWASZ
IDHFNA
MAKELIT
AC Output:

Code: Select all

ABCDEFGHIJ1
KLMNOPQRSTUVWXY1
ZPNCPIROQL2
UNIQETRLS2
PLMKNUYHBVGTFFEQAWSZ0
IDNFAH5
MAITKEL6
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
Zyaad Jaunnoo
Experienced poster
Posts: 122
Joined: Tue Apr 16, 2002 10:07 am

Re: 1209 - Wordfish

Post by Zyaad Jaunnoo »

v1n1t wrote:Here's some input / output I found useful during testing / debugging.

Input:

Code: Select all

ABCDEFGHIJ
KLMNOPQRSTUVWXY
ZPNCPLOIRQ
UNIQLETRS
PLMKNUYHBVGTFFEQWASZ
IDHFNA
MAKELIT
AC Output:

Code: Select all

ABCDEFGHIJ1
KLMNOPQRSTUVWXY1
ZPNCPIROQL2
UNIQETRLS2
PLMKNUYHBVGTFFEQAWSZ0
IDNFAH5
MAITKEL6
According to the problem description, some test cases are not correct.

Code: Select all

ABCDEFGHIJ           <= Is not the eleventh (middle) of the consecutive permutations
KLMNOPQRSTUVWXY      <= Is not the eleventh (middle) of the consecutive permutations
PLMKNUYHBVGTFFEQWASZ <= Contains repeated letter.  'F' is repeated twice
Post Reply

Return to “Volume 12 (1200-1299)”