if i want to search a target which is the same as my input in a array that is 2D..
what methods is more efficient??
binary search or linear search..
which is highly recommended?
help me because i have to use it?

I think that for binary search you need sorted list... so if you have unsorted array, linear search will have to do.
Otherwise, binary is faster

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.