We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I'm able to pass in Elixir. Do you want to try it again and see if you're still having an issue? Make sure you're printing a space/comma/semicolon-separated list.
Confirmed this -- my code passes all the test cases but #1 and #2, and when I "purchase" test case #2, it indicates that the input and output should both be the integer X -- not a list of length X.
Still broken!! Seems like the internal mechanism is counting the number of items in the list, which it uses to assert the test results. So output should be a list so it counts the number of elements. Purchased all test cases and for some wierd reason, even though testcase #1 and #2 fail, seems like #3 and #4 pass, and the output is an integer (total number of elements in the list) just like in the first 2.
...was using IO.inspect without options, thats why it was failing, since inspect does not show the whole list if its too long, passing limit: :infinity to the inspect function's options fixed it. Nice!
Array Of N Elements
You are viewing a single comment's thread. Return to all comments →
I'm able to pass in Elixir. Do you want to try it again and see if you're still having an issue? Make sure you're printing a space/comma/semicolon-separated list.
Looks like test cases #1 and #2 are still broken. These cases expect an integer number as an output but it has to be a list instead.
Confirmed this -- my code passes all the test cases but #1 and #2, and when I "purchase" test case #2, it indicates that the input and output should both be the integer X -- not a list of length X.
Still broken
Still broken, and it's broken for 2 years now :(
Still broken for elixir.
It passed for me
Still broken for elixir!!
IO.inspect's default limit is 50
1..90 |> Enum.to_list |> IO.inspect [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, ...]
1..90 |> Enum.to_list |> IO.inspect(limit: :infinity) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90]
Thank you very much! It worked for me on Elixir now!!
This is a very tricky challenge. Thanks for your help, IO.inspect(limit: :infinity) solved the problem.
Sorry something still seems weird. Testcase 1 passes when "running" the code, but then it fails when "submitting" it.
Still broken!! Seems like the internal mechanism is counting the number of items in the list, which it uses to assert the test results. So output should be a list so it counts the number of elements. Purchased all test cases and for some wierd reason, even though testcase #1 and #2 fail, seems like #3 and #4 pass, and the output is an integer (total number of elements in the list) just like in the first 2.
...was using
IO.inspect
without options, thats why it was failing, sinceinspect
does not show the whole list if its too long, passinglimit: :infinity
to the inspect function's options fixed it. Nice!I was able to pass all tests cases as well
how