Thread: Function for non repeated character

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    3

    Function for non repeated character

    I want to write an efficient function to find first non-repeated character in a string. For instance, the non repeated character in "total" is 'o' and the first non repeated character in "teeter" is 'r'.

    Tushar.

  2. #2
    Registered User
    Join Date
    Nov 2005
    Posts
    3
    I want to do this using hash tables....

  3. #3
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    Thanks for stating what you want, but how about asking a question?

    Please note the forum policy on homework.

    Note, following up with "this is not homework" is not convincing. Have you come with an idea on how to approach the problem? Let's see your code?

    You say you want an efficient function, why not write a version that you think is inefficient, and ask for suggestions for improvement.

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    What, you mean try something on your own?! That's just CrAzY TaLk!


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. C++ compilation issues
    By Rupan in forum C++ Programming
    Replies: 1
    Last Post: 08-22-2005, 05:45 AM
  5. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM