Elixir: Reduce
🚧 In development
Instructions
🚧 In development
If you've reached a deadlock it's time to ask your question in the «Discussions». How ask a question correctly:
- Be sure to attach the test output, without it it's almost impossible to figure out what went wrong, even if you show your code. It's complicated for developers to execute code in their heads, but having a mistake before their eyes most probably will be helpful.
Elixir: Reduce
🚧 In development
Instructions
🚧 In development
If you've reached a deadlock it's time to ask your question in the «Discussions». How ask a question correctly:
- Be sure to attach the test output, without it it's almost impossible to figure out what went wrong, even if you show your code. It's complicated for developers to execute code in their heads, but having a mistake before their eyes most probably will be helpful.
Your exercise will be checked with these tests:
defmodule Test do
use ExUnit.Case
test "max_delta work" do
assert Solution.max_delta([], []) == 0
assert Solution.max_delta([-5], [-15]) == 10
assert Solution.max_delta([0], [42]) == 42
assert Solution.max_delta([10, -15, 35], [2, -12, 42]) == 8
end
endTeacher's solution will be available in:
20:00
