i have an array of strings (2D array). i am taking input of strings and that strings can be same with strings which i have inputted before that string. so i want that i don't enter that string which is already being taken into array. so how can i do this thing in my code ? using linear search is costly in my case. thanks in advance.
nitin1
15
Master Poster
Recommended Answers
Jump to Postdon't know how map work ?
Typically it's some form of balanced binary search tree, with red black trees being the most common implementation.
secondly, can i say that it is good to learn C++ for these types of implementaions ?
Using a library is recommended …
All 7 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
mvmalderen
commented:
Yuppers ;-)
+13
nitin1
15
Master Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
nitin1
15
Master Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
nitin1
15
Master Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.