InterviewSolution
Length of the array = UB - LB + 1whereUB is the largest index or upper bound index numberLB is the smallest index or lower bound index number.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy