+ Reply to Thread
Results 1 to 3 of 3

Thread: Find repeated word

  1. #1
    admin's Avatar
    admin is offline Administrator
    Join Date
    Mar 2010
    Posts
    44

    Find repeated word

    You are given an infinite supply of words, which are coming one by one, and length of words, can be huge and is unknown how big it is. How will you find if the new word is repeated, what data structure will you use to store.

  2. #2
    puspendra Guest
    use suffix tree , take sequence of word with space , if new word come, search in suffix tree and modify tree

  3. #3
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321
    how will you implement Suffix tree in the interview ?

    I think in interview we should start with simple solution, one can enhance our solution during discussion.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find first non-repeated character
    By Surfer in forum Yahoo!
    Replies: 1
    Last Post: 22nd April 2010, 22:55

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts