about | help | code help+videos | done | prefs |
Given an integer array called list, return "close" if any two values in the array are duplicates or differ by 1. Return "far" if no values in the array are the same or differ by 1. logic_closeOrFarN([1, 2, 3, 4, 5]) → "close" logic_closeOrFarN([1, 3, 6, 9, 0]) → "close" logic_closeOrFarN([3, 5, 6, 8, 10]) → "close" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy