about | help | code help+videos | done | prefs |
Write a method that returns 'true' if any of the input parameters matches any of the other input parameters. Return 'false' otherwise (so return 'false' if there are no matches). For example, for the input parameters 6, 12, 40 the method would return 'false' because none of these matches any of the others. However, 18, 2, 18 would return 'true' because the two 18's match. The method must also return 'true' if all of the input parameters match such as 5, 5, 5. Look at the test data for further examples. sep9_2016_APSLHL_anyDuplicates(-3, -3, 12) → true sep9_2016_APSLHL_anyDuplicates(27, 27, 27) → true sep9_2016_APSLHL_anyDuplicates(27, 4, 27) → 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: 210
Copyright Nick Parlante 2017 - privacy