What is the quickest way to find the first character which only appears once in a string?
This snippet code in JavaScript
var string = "tooth"; var hash = []; for(var i=0; j=string.length, i