Submission Status: Passed
Submitted for: March 2 - Find Graph Weights for a Mapping Application in Ruby
Submitted at: August 01, 2017
def route_generator route_total, nodes route_total.to_f / nodes.inject(0) { |total, node| total += node.last } end
devCamp does not support ancient browsers.
Install a modern version for best experience.