Skip to content

Instantly share code, notes, and snippets.

View rjdellecese's full-sized avatar

RJ Dellecese rjdellecese

  • Cambridge, MA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rjdellecese on github.
  • I am rjdellecese (https://keybase.io/rjdellecese) on keybase.
  • I have a public key ASC7eB8e6o5bi9LY6kE1taPMZfWLwPqjl9p_2gp0tQMcugo

To claim this, I am signing this object:

@rjdellecese
rjdellecese / itos.rb
Created April 9, 2016 17:48
Instructions: Write a function that takes a positive integer and returns that integer as a string without using the `.to_s` method.
require 'minitest/autorun'
def itos(int)
return '0' if int == 0
int_to_str_hash = {
0 => '0',
1 => '1',
2 => '2',
3 => '3',