Star Map
Given a rectangular grid and a query index k, find the center of the k-th valid star cross. The grid has n rows and m columns. A cell contains a star when its value is 1, and is empty when its value is 0.
The function receives one numeric array arg1 encoded as [n, m, k, cell_0_0, cell_0_1, ..., cell_{n-1}_{m-1}]. The cells are row-major. For compatibility with compact all-star fixtures, when the array contains only [n, m, k], every grid cell is treated as a star.
A cross has an integer radius r >= 1, a star center (row, column), and four star arms at (row-r,column), (row+r,column), (row,column-r), and (row,column+r). Every listed cell must lie inside the grid and contain a star. The center is also required to contain a star.
List every valid cross and order it by radius ascending, then center row ascending, then center column ascending. k is 1-indexed. Return the zero-indexed flattened center index row * m + column of the selected cross. If no k-th cross matches this description because fewer than k valid crosses exist, return -1.
Star Map
Given a rectangular grid and a query index `k`, find the center of the k-th valid star cross. The grid has `n` rows and `m` columns. A cell contains a star when its value is `1`, and is empty when its value is `0`.