摘要: Given a string and an offset, rotate string by offset. (rotate from left to right) Example Given "abcdefg". offset=0 => "abcdefg" offset=1 => "gabcdef 阅读全文
posted @ 2018-08-10 01:24 jasminemzy 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2018-08-10 01:05 jasminemzy 阅读(159) 评论(0) 推荐(0) 编辑