DEV Community

Discussion on: Can you solve this interview problem?

Collapse
 
kb1hyr profile image
kb1hyr

Convert the strings in each array element back to base64, then iterate through each possible combination until you find one that, converted back into a string, starts with http. This is aided by the fact the last array element will always end in ==.