@Naveen Kumar
1. For Python Implementation
I have used string just for example.
You can have a list(or array) . Then iterate it through each element
of list instead of above implementation(iterating through each character of
string) . Rest of the thing will remain same.
2. For C implementation
If it is not string, then you have to use hash table(available in STL)
as pointed out by sanjay ahuja
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.