Maximum Positive Feedback
The other quesiton in the same batch was posted on our Discord server oa-update channel.
The TikTok Content creator's videos receives feedback from viewers over time, represented as a binary string, videoFeedback:
The creator wants to improve a video's overall positive reception by strategically targeting a portion of the video for editing or improvement. Here's the strategy:
The objective is to maximize the total positive feedback(1s) for the entire video after performing this operation.
Note: The operation must be performed only once.
Complete the function getMaxPositiveFeedback in the editor.
getMaxPositiveFeedback has the following parameter:
- string videoFeedback: a binary string representing the feedback on a video, where 1 represents positive feedback and 0 represents negative reaction