This article is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
else if W > suffixAt(pos[m-1]) then ans = m seems to be wrong. it think it is else if W > suffixAt(pos[n-1]) then ans = n —Preceding unsigned comment added by 220.127.116.11 (talk) 14:29, 22 October 2010 (UTC)
I second that. And fixed that and also R = m-1, which didn't match the description. Mjordan (talk) 06:19, 21 June 2011 (UTC)