about | help | code help+videos | done | prefs |
index2D
Define a function that when passed a 2-dimensional ArrayList of Integers, and another int value, returns the index of the first sub-list in which the value exists, -1 if it doesn't in any of the sub-lists. index2D([[10, 70], [20, 90]], 20) → 1 index2D([[10, 70], [20, 90]], 70) → 0 index2D([[10, 70], [20, 90]], 50) → -1 ...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: 3 Post-solution available
Copyright Nick Parlante 2017 - privacy