You are viewing a single comment's thread. Return to all comments →
@iam_byungwoo :
you are correct; for the input [2, 5, 5, 5, 5], a minimum of 5 operations will suffice.
However, @singhavdeshk enquired about a different input [2, 5, 5, 5, 5, 5], which requires a minimum of 6 operations.
Seems like cookies are disabled on this browser, please enable them to open this website
Equal
You are viewing a single comment's thread. Return to all comments →
@iam_byungwoo :
you are correct; for the input [2, 5, 5, 5, 5], a minimum of 5 operations will suffice.
However, @singhavdeshk enquired about a different input [2, 5, 5, 5, 5, 5], which requires a minimum of 6 operations.