Skip to main content

Practice · 4 of 5

Find with a null contract

CHALLENGE
Difficulty: beginner+25 XP

Implement find(int[][] g, int target): return {row, col} of the FIRST match in row-major order, or null when absent.

Back to lesson: Practice: 2D array reps