id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

zbaharav@kehillah.org twelvedaysofap > isFuntion
prev  |  next  |  chance

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)

public boolean isFuntion(int[] x, int[] y){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy