<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KVGHS6G" height="0" width="0" style="display:none;visibility:hidden"></iframe>

ZipRecruiter数据相关面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(1)
SQL(0)
Coding(1)
ML basics(0)
Stats(0)
Product Case(0)
高频题(0)
Other(0)
全部(1)
SQL(0)
Coding(1)
ML basics(0)
Stats(0)
Product Case(0)
高频题(0)
Other(0)
1.Spiral Matrix Sum
1. Spiral Matrix Sum
Given a 2D square array of integers, you need to flatten the elements of the given matrix into a single list by traversing it in a spiral order, starting from the top left and moving clockwise. Then calculate the sum of the elements located at indices divisible by 3 (0-based) in this flattened list and return this sum. For example, if the matrix is [[1,2,3], [4,5,6],[7,8,9]], you should flatten them as 1,2,3,6,9,8,7,4,5, and then the sum is 1+6+7=14.