Both find() and contains() can be used. According to the documentation. Both methods take constant time on average and linear time in the worst case.
↧
Both find() and contains() can be used. According to the documentation. Both methods take constant time on average and linear time in the worst case.