質問編集履歴

1

コードがまちがっていました。

2017/05/10 14:21

投稿

manman
manman

スコア233

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ```ruby
8
8
 
9
- def count_distinct_numbers(n)
9
+ def count_distinct_numbers(ary)
10
10
 
11
11
  ???
12
12
 
@@ -14,8 +14,8 @@
14
14
 
15
15
 
16
16
 
17
- p count_distinct_numbers([1, 2, 3, 5, 8] #=> 5
17
+ p count_distinct_numbers([1, 2, 3, 5, 8]) #=> 5
18
18
 
19
- p count_distinct_numbers([1, 1, 2, 3, 5, 8] #=> 0
19
+ p count_distinct_numbers([1, 1, 2, 3, 5, 8]) #=> 0
20
20
 
21
21
  ```