Click here to Skip to main content
11,927,167 members (50,509 online)
Rate this:
Please Sign up or sign in to vote.
See more: Python
Guys help me please how to solve this problem..

I have to input two string :
String 1 = afasfnsdkgsx
String 2 = ahdshgsuxcbnml

and i have to output one string from these two string,....So I input two randoms letters Strings and Output one string with ordered letters that forms a World with its meaning.

for example:

Input 1: iabcy
Input 2: enzrd

Outpu : Endry

Thank you !
Posted 11-Apr-13 7:09am
Edited 11-Apr-13 7:11am
Richard MacCutchan 11-Apr-13 12:24pm
So how do you guess from those letters what word is expected? For example, I have no idea what endry means.
PleaseForgiveMe40 11-Apr-13 12:59pm
Endry is a Human name...Sorry i took it for an example ..was for the moment

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Brute force approach: try to match every string you can form with the available characters with the entries of a dictionary.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 11 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100