Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

lexicographically smallest rotated sequence problem

Правка en1, от swordx, 2017-07-02 17:01:21

Hi All,

Can someone share their ideas on how to do the following problem in O(n): http://www.geeksforgeeks.org/lexicographically-smallest-rotated-sequence-set-2/

I have found on wikipedia that it can be done in O(n). I am not able to understand the booth's algorithm given on wikipedia.

Can someone share their approach to solve this problem in O(n).

Thanks in advance

Теги #strings

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский swordx 2017-07-02 17:01:21 432 Initial revision (published)