12,065,756 members (32,917 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
v2
Comments
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:
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)

Top Experts
Last 24hrsThis month
 OriginalGriff 383 ppolymorphe 135 Sascha Lefèvre 105 RDBurmon 90 Sergey Alexandrovich Kryukov 89
 Dave Kreskowiak 1,866 Richard MacCutchan 1,260 OriginalGriff 1,114 d@nish 980 CPallini 810

Advertise | Privacy | Mobile
Web01 | 2.8.160207.1 | Last Updated 11 Apr 2013
Copyright © CodeProject, 1999-2016
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