Find the Length of the Longest Common Prefix at Instacart
Medium57.0% acceptance
This problem has 75.0% frequency at Instacart.
Problem Description
You are given two arrays with **positive** integers `arr1` and `arr2`. A **prefix** of a positive integer is an integer formed by one or more of its digits, starting from its **leftmost** digit. For example, `123` is a prefix of the integer `12345`, while `234` is **not**. A **common prefix** of t...
Read full problem and hintsTopics
Also asked at 16 companies
More Instacart Questions
Check if Every Row and Column Contains All NumbersEasyFind First and Last Position of Element in Sorted ArrayMediumSquares of a Sorted ArrayEasyTime Based Key-Value StoreMediumAverage Waiting TimeMedium
View all Instacart questions