0 votes 0 votes Its answer comes to be in table [5] what should be answer as it starts from 0 then I think answer should be 6 but in test it was given as 5 . please answer I_am_winner asked Jul 20, 2018 I_am_winner 214 views answer comment Share Follow See 1 comment See all 1 1 comment reply Shubham Shukla 6 commented Jul 20, 2018 reply Follow Share 5 is correct.. yes it starts from 0 only,its because taking mod with 11 will you give remainder from 0-10 , so you will have hashing table with index numbered from 0 to 10.And location is asked where its stored in table so its a[5] only,if its position was asked than it would have been 6 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes Yes 5 is correct. i think u are thinking that if location is starting from 0 then location is 6 but u r thinking on wrong way.Because location is 5 position of that location is 6. That is last element is situated in 6th position i.e. location 5. imnitish answered Jul 20, 2018 imnitish comment Share Follow See 1 comment See all 1 1 comment reply I_am_winner commented Jul 20, 2018 reply Follow Share if location is asked then it is 5 or position is asked then it is 6 ,thanks for help 0 votes 0 votes Please log in or register to add a comment.