Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How long does it take to linear search 200MB in memory?. Parent comment
if (data[i] == strArr[found]) {
if (data[i] == stringToFind.codePointAt(found)) {
That way both golang and Java will be performing proper unicode code point indexing.
Of course the optimization you made makes sense, but I think it'd be fair for the golang version to do same.
There are no comments on this comment yet.
That way both golang and Java will be performing proper unicode code point indexing.
Of course the optimization you made makes sense, but I think it'd be fair for the golang version to do same.