Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions koodi.rb
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# kirjoita koodi tänne

def esiintymat(t)
numerot = {}
t.length.times do |i|
numerot[t.at(i)] = 0
end
t.length.times do |i|
numerot[t.at(i)]+=1
end
return numerot
end