/word-search-challenge

Algorithm for searching through a 2 Dimensional array, search for words - interview challenge

Primary LanguageJava

Pre Interview Questions

Here are the questions. Looking for you to finish this in 30-60 minutes.
You can write the code in Java, C, or Python and just send me the text file when you’re done.

  1.   Given a string, print out all possible anagrams/permutations of it. You do not have to remove duplicates.
    

Eg. Input: Rabbit Output: abbitr, batibr, tibarb, etc.

  1.   Write a program to find as many countries as you can in a randomly generated matrix of letters. The input will be a two dimensional array.
    

ScreenShot

results : ScreenShot