Skip to content

Instantly share code, notes, and snippets.

View infinitesteps's full-sized avatar

infinitesteps infinitesteps

View GitHub Profile
@infinitesteps
infinitesteps / Problem1.1.rb
Created April 1, 2011 16:07
Cracking the Coding Interview, Fourth Edition
#!/usr/bin/ruby
def allUnique(s)
seen = Hash.new()
s.each_char do |c|
if seen[c] then
return false
else
seen[c] = true
end