New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Microsoft
Coding Question
AI Insights
Quick Summary
Identify the index of the maximum score in each row of the input matrix.
Resolve ties by selecting the smallest token index.
Process each time step independently and collect the chosen indices.
What This Tests
Single-pass array traversal and iteration
Argmax operation with explicit tie-breaking logic
Safe comparison of floating-point values
Evaluating time and space complexity for nested loops
Common Patterns
Greedy
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected