Problem Β· Intervals

Card Range Obfuscation Part 3 (ML Eng :)

Learn this problem
● MediumStripe logoStripeFULLTIMEOA
See Stripe hiring insights

Problem statement

🐝 Hi there! The description you are currently reading is just 2nd part of the problem set. It is highly recommended to read ALL THE PARTS before coding as parts may build on top of each other 🐳

  • Card Range Obfuscation Part 1 (ML Eng :) πŸ¦”
  • Card Range Obfuscation Part 2 (ML Eng :) 🐹
  • Card Range Obfuscation Part 3 (ML Eng :) 🦚
  • Card Range Obfuscation Part 4 (ML Eng :) πŸ₯
  • Part 3

    For the third set of testcasds, the input may contain intervals that are proper subsets of other intervals. When extending an interval to cover a gap, you should only extend the covering interval. This will be sufficient to solve the next 2 testcases.

    Unfortunately, this is all the information we currently have about Part 3. To ensure successful uploading, the example input and output provided are just placeholders. I hope they still help you grasp the overall problem set. Thank you so much for your understanding and support! 😊

    Function

    cardRangeObfuscation3(BIN: int, N: int, info: String[][]) β†’ String[][]

    Examples

    Example 1

    BIN = 424242N = 2info = [["0000000000", "5999999999", "VISA"]]return = [["4242420000000000", "4242429999999999", "VISA"]]
    Example 1: the first VISA interval and second CB interval are extended (this statement originates from Part 3) Input & output are just placeholders :)

    Constraints

    🫢

    More Stripe problems

    drafts saved locally
    public String[][] cardRangeObfuscation3(int BIN, int N, String[][] info) {
      // write your code here
    }
    
    BIN424242
    N2
    info[["0000000000", "5999999999", "VISA"]]
    expected[["4242420000000000", "4242429999999999", "VISA"]]
    checking account