What will be the suffix array of the string “engineering”?
(a) 2 3 8 4 9 1 7 5 0 6 10
(b) 5 0 6 1 4 9 1 7 0 2 3 8
(c) 5 0 6 10 2 4 9 1 7 3 8
(d) 5 0 6 10 2 3 8 4 9 1 7
This interesting question is from Arrays Types topic in chapter Arrays Types of Data Structures & Algorithms I
This question was posed to me during an internship interview.