Sort 5 Discussions, By:
Please Login in order to post a comment
I think the problem statement needs to be cleaned-up.
Here's my interpretation :
A right-rotation is when all chars of the suffix block are bumped one place to the right except for the final char which jumps left to the beginning of the block.
A left rotation is when all chars of the suffix block are bumped one place to the left except for the first char which jumps right to the end of the block ( and end of the string ).
So in the first example problem they are performing right-rotations.
But in Explanation 0 they instead perform left-rotations without explicitly stating such.
Maybe this is intentional. I just think the problem is difficult enough without explicitly spelling-out what moves are being performed in the examples.
guys, I am stuck, I've searched the internet, read a bit about suffix arrays, Lyndon words and factorization and some other stuff, but I can not figure out how this all applicable here.
I would greatly appreciate some hints.
what is constraints mean ? does it effect our score ?
Given the following input:
The correct answer to get to:
is supposedly 29 moves
but I can only do it in 32 moves
don't see what I'm missing
Hey boys and girls! New purposes from authors can forever help in writing our essays. It does not matter if you are in middle school, excessive college to your high college credential, college or university in your bachelors, postgraduate to your masters or doctorates for your doctor of philosophy sciences. What remains constant universally, during all time and every one degree is that the demand by suggests that of your academics or professors to write down an assignment. I am here to share with you that this online super cool uk essays writing service will plays a significant role within the success of writing home assignments for your nearest difficult education!!!
No more comments