0 votes 0 votes Algorithms algorithm-design + – Prithvi asked Jun 14, 2018 • retagged Jun 18, 2022 by makhdoom ghaya Prithvi 284 views answer comment Share Follow See 1 comment See all 1 1 comment reply srestha commented Jun 14, 2018 reply Follow Share where u got this question? question is incomplete I think 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes If we use Hashing to store the array,then any number can be found in O(1). Angkit answered Jun 14, 2018 Angkit comment Share Follow See all 2 Comments See all 2 2 Comments reply srestha commented Jun 15, 2018 reply Follow Share hashing with chaining? If there are more than one element present in each slot? 0 votes 0 votes Angkit commented Jun 15, 2018 reply Follow Share I assumed non repetition.If we allow repetition then,we have to search entire array-(n). If we use chaining(hash) then we will have difficult to do any other operation(But if we do ,it will be O(1). 0 votes 0 votes Please log in or register to add a comment.