about | help | code help+videos | done | prefs |
Given a 2D array of integers (1D arrays to build a 2D array from) and a target value, return true if the target value is anywhere in the 2D array. Your first line of code must be: int[][] arr = {row1, row2, row3}; array2D_containsValue([1, 1], [-2, -2], [3, 3], 1) → true array2D_containsValue([-1, 2, 3], [4, -5, 6], [7, 8, -9], 5) → false array2D_containsValue([1], [2], [3], 2) → 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
Copyright Nick Parlante 2017 - privacy