π 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 π³
Part 4
Examples
01 Β· Example 1
BIN = 424242 N = 2 info = [["0000000000", "5999999999", "VISA"], ["6000000000", "9999999999", "VISA"], ] return = [["4242420000000000", "4242429999999999", "VISA"]]

Example 1: the two adjacent VISA intervals were merged
Note - I double checked the input & output numbers while uploading, but since there are so many digits, I might count them wrong. If you notice anything wrong, pls feel free to lmk. I am more than happy to modify accordingly. Many thanks in advance! You da best!!
02 Β· Example 2
BIN = 424242 N = 3 info = [["1000000000", "3999999999", "VISA"], ["5000000000", "6999999999", "VISA"], ["8000000000", "9999999999", "MASTERCARD"],] return = [["4242420000000000", "4242427999999999", "VISA"],["4242428000000000", "4242429999999999", "MASTERCARD"]]
Example 2: the VISA intervals were extended to fill the gaps, then merged.
Note - I double checked the input & output numbers while uploading, but since there are so many digits, I might count them wrong. If you notice anything wrong, pls feel free to lmk. I am more than happy to modify accordingly. Many thanks in advance! You da best!!
Constraints
π«Ά
More Stripe problems
- Count Valid Bitwise PairsOA Β· Seen Jun 2026
- Request Routing SystemOA Β· Seen May 2026
- Email Log Processing, Grouping, and SortingOA Β· Seen May 2026
- Generate Available Time SlotsPHONE SCREEN Β· Seen Apr 2026
- Chat Billing CalculationSeen Mar 2026
- Process List of CommandsSeen Dec 2024
- Card Range Obfuscation Part 2 (ML Eng :)Seen Nov 2024
- Card Range Obfuscation Part 3 (ML Eng :)Seen Nov 2024
public String[][] cardRangeObfuscation4(int BIN, int N, String[][] info) {
// write your code here
}
BIN424242
N2
info[["0000000000", "5999999999", "VISA"], ["6000000000", "9999999999", "VISA"], ]
expected[["4242420000000000", "4242429999999999", "VISA"]]
sign in to submit