Word Jumble Algorithm

Posted by MasterMax1313 on Stack Overflow See other posts from Stack Overflow or by MasterMax1313
Published on 2010-04-27T14:38:53Z Indexed on 2010/04/27 14:43 UTC
Read the original article Hit count: 382

Filed under:
|

Given a word jumble (i.e. ofbaor), what would be an approach to unscramble the letters to create a real word (i.e. foobar)? I could see this having a couple of approaches, and I think I know how I'd do it in .NET, but I curious to see what some other solutions look like (always happy to see if my solution is optimal or not).

This isn't homework or anything like that, I just saw a word jumble in the local comics section of the paper (yes, good ol' fashioned newsprint), and the engineer in me started thinking.

© Stack Overflow or respective owner

Related posts about language-agnostic

Related posts about puzzle