Suffix By Prithwiraj samanta Finding suffix array function suffix(v) { v = prefix(v); var res = Array(v.length).fill(0); var i = 0; for(i = 1; i < v.length; i++) { res[i] = v[v.length - 1] + v[i - 1]; } return res; } Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps