View Single Post
  #2  
Old 01-15-2008, 02:08 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
PHP Code:
function anagramsOf( word )
{
  if ( 
word == "jew" )
    return {
"jew", "wej", "wje", "jwe", "ewj", "ejw" };
  else echo(
"This feature isn't implemented yet.")
} 
=D Is O(1)! Wait? Do anagrams have to be dictionary words?

PHP Code:
function anagramsOf( word )
{
  if ( 
word == "jew" )
    return {
"jew"};
  else echo(
"This feature isn't implemented yet.")
} 
Still O(1)! I'm good.
Reply With Quote