Recover RSA
Obviously we can only achieve O(n) for this questions (since we need to move every element). But how can we do O(1) space?
You find the rotating pivot and do 3 reverse actions.
Similar to a question in programming pearls.
Last updated
Obviously we can only achieve O(n) for this questions (since we need to move every element). But how can we do O(1) space?
You find the rotating pivot and do 3 reverse actions.
Similar to a question in programming pearls.
Last updated