注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
海投OA, 共四题70分钟。两题比较简单,以下两题较难:
1, You are given a matrix of integers matrix, containing only zeros and ones. Let's call an "X-shape" a figure with a center at some cell of matrix and 4 diagonal rays of equal length. The X-shape is called perfect if all its elements equal 1. For example, there is is guaranteed that index is a valid 0-based index of state (ie: index < state.length).Given state and operations, your task is to return the binary string of state array after al the operations have been applied.
请加米! |