Birthday Cake Candles

  • + 0 comments

    need to add one more check in while condition for all the array elements with same value

    while ( i > -1 && a[i--] == tallest ) { count++; }