about | help | code help+videos | done | prefs |
public boolean firstElementsEqual(int[] a, int[] b)
public boolean firstElementsEqual(int[] a, int[] b) { boolean equals = false; if (a[0] == b[0]) { equals = true; } return equals; } firstElementsEqual([1, 2], [1, 5]) → true firstElementsEqual([3, 7], [3, 2]) → true firstElementsEqual([6, 7], [7, 6]) → false ...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: 1
Copyright Nick Parlante 2017 - privacy