RSS

2D array search

Fri, Mar 5, 2010

Algorithm

There exits 2D array. We need or find out whether a given string (”microsoft”) exits in the given matrix. The string can be vertical or horizontal or in snake form but not in diagonal.
mi..
…c.o..oft
…..r.s
For every element, check its entire neighbor element to get the match
 Please refer this link

Sharing ~ Helping Other:
  • Print
  • email
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • BlinkList
  • DZone
  • Slashdot
  • YahooMyWeb
  • StumbleUpon
  • Live
  • IndianPad
  • DotNetKicks
  • Technorati

Other Posts:

This post was written by:

eXclusiveMinds - who has written 500 posts on eXclusiveMinds.


Contact the author

Leave a Reply

You must be logged in to post a comment.