Search
⌘K

Leetcode 1533. Find the Index of the Large Integer

Given an array of non-negative integers represented as strings, return the index of the largest integer — compare by string length first (longer means larger) and then lexicographically to avoid numeric overflow, with ties broken by the smallest index.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.