These are chat archives for Sammykhaleel/RATAFIRE

1st
Apr 2015 Fari Liang
@fariliang
Apr 01 2015 03:08
See you tomorrow at 4:00pm! Sammy khaleel
@Sammykhaleel
Apr 01 2015 04:16
Sounds good. Fari Liang
@fariliang
Apr 01 2015 19:57
I will be there in 10 min. Sammy khaleel
@Sammykhaleel
Apr 01 2015 20:13
I'm here Sammy khaleel
@Sammykhaleel
Apr 01 2015 21:29
s.map{|n| p n.split("")}
s= ["hello world"] Fari Liang
@fariliang
Apr 01 2015 21:50
ruby
def isPangram(n)

string = n.gsub(/\s+/, "").downcase

missing_letters = Array.new

('a'..'z').each do |l|
if  string.index(l).nil?
missing_letters << l
end
end

if missing_letters.empty?
return 1
else
return 0
end

end Fari Liang
@fariliang
Apr 01 2015 22:36
def amount_of_goods(n,m,c)

wrappers = n / c
total = wrappers

begin
traded = wrappers / m
remaining = wrappers % m
wrappers += remaining
end while traded == 0

end Fari Liang
@fariliang
Apr 01 2015 22:58
def amount_of_goods(n,m,c)

total = n / c
wrappers = total

begin
traded = wrappers / m
remaining = wrappers % m
wrappers = traded + remaining
end until traded == 0

end Fari Liang
@fariliang
Apr 01 2015 23:08
 ruby

ruby

# Answer for question 2

def amount_of_goods(n,m,c)

total = n / c
wrappers = total

begin
traded = wrappers / m
remaining = wrappers % m
wrappers = traded + remaining
end until traded == 0

p total

end

#Answer for question 2

def amount_of_goods(n,m,c)

total = n / c
wrappers = total

begin
traded = wrappers / m
remaining = wrappers % m
wrappers = traded + remaining
end`