1 votes 1 votes In an array-based implementation of a Heap, the right-child of the right-child of the node at index $i,$ if it exists, can be found at what array location? Index of the array starts from $1.$ $4i + 3$ $2i + 1$ $4i + 1$ $2i + 2$ DS goclasses2023-iiith-mock-1 goclasses data-structures array binary-heap 1-mark + – GO Classes asked Mar 26, 2023 • edited Mar 27, 2023 by Lakshman Bhaiya GO Classes 976 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
4 votes 4 votes Right child of A[i] will be at A[2i+1] // because index start from 1 so right child of (2i+1) will be at 2(2i+1) + 1 = 4i + 3 Correct Answer is A THE_GODXX answered Apr 15, 2023 THE_GODXX comment Share Follow See all 0 reply Please log in or register to add a comment.