StripeSoftware Engineer · Phone ScreenCodemia practiceFind cycle in matrix
Given a 2D matrix filled with integers, determine if there exists a cycle in the matrix where you can move in four possible directions (up, down, left, right) and return to the starting point. A cycle is defined as a path that starts and ends at the same cell without revisiting any cell in between. The function should return true if a cycle exists, and false otherwise.