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 hints

Topics

Also asked at 16 companies


More Instacart Questions

View all Instacart questions