Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3044. Most Frequent Prime
Given an m x n digit matrix, form numbers by walking from every cell in any of the 8 straight directions (appending digits along the path and considering every prefix) and count those >10 that are prime; return the most frequent prime (tie broken by larger value) or -1 if none.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.