about | help | code help+videos | done | prefs |
Given two arrays that represent a map (temperatures and cities), determine the city with the highest range in temperatures. highRangeCity([78, 61, 40, 38], ["Blacksburg", "Blacksburg", "Seattle", "Seattle"]) → "Blacksburg" highRangeCity([78, 61, 81, 62, 84, 59, 47, 60, 31, 49], ["Blacksburg", "Blacksburg", "Blacksburg", "Blacksburg", "Blacksburg", "New York", "New York", "New York", "New York", "New York"]) → "New York" highRangeCity([78, 61, 81, 62, 84, 59, 47, 60, 31, 49, 62, 41, 63, 42, 62], ["Blacksburg", "Blacksburg", "Blacksburg", "Blacksburg", "Blacksburg", "New York", "New York", "New York", "New York", "New York", "San Jose", "San Jose", "San Jose", "San Jose", "San Jose"]) → "New York" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 350
Copyright Nick Parlante 2017 - privacy