摘要:
Given a string and an offset, rotate string by offset. (rotate from left to right) Example Given "abcdefg". offset=0 => "abcdefg" offset=1 => "gabcdef 阅读全文
摘要:
Given a rotated sorted array, recover it to sorted array in-place.What is rotated array? * For example, the orginal array is [1,2,3,4], The rotated ar 阅读全文