On the surface, the two problems mentioned in the title sound like good problems. They feature a new requirement, which prevents you from using a new array to store values. This adds variety to the problems, which sounds good. But when you actually look at the like-dislike ratios, you see that there are almost twice as many dislikes as there are likes.
Do you have a reason for the high amount of dislikes?