Minimum Time to Revert Word to Initial State I at Sprinklr
Medium42.3% acceptance
This problem has 87.5% frequency at Sprinklr.
Problem Description
You are given a **0-indexed** string `word` and an integer `k`. At every second, you must perform the following operations: * Remove the first `k` characters of `word`. * Add any `k` characters to the end of `word`. **Note** that you do not necessarily need to add the same characters that y...
Read full problem and hintsTopics
More Sprinklr Questions
Apply Bitwise Operations to Make Strings EqualMediumCount the Number of Powerful IntegersHardMinimum Time to Revert Word to Initial State IIHardIsomorphic StringsEasySerialize and Deserialize Binary TreeHard
View all Sprinklr questions