about | help | code help+videos | done | prefs |
isFuntion
Given two input arrays of the same length, x and y, representing a relation, determine if this relation is a function. 'x' represents the input, and 'y' represents the output. Reminder : A function is a relation if for each input there is a unique output. isFuntion([1, 2, 3], [2, 4, 6]) → true isFuntion([1, 2, 1], [2, 4, 6]) → false isFuntion([3], [3]) → true ...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: 100
Copyright Nick Parlante 2017 - privacy