/**
 * Given two lists of photos, return a map containing the similarities between them.
 *
 * @param photos1 The first list of photos.
 * @param photos2 The second list of photos.
 * @return A map containing the similarities between the two lists of photos.
 *         The keys are the photo names and the values are lists representing the similarities.
 *
 * Example:
 * photos1 = listOf("photo1.jpg", "photo2.jpg", "photo3.jpg")
 * photos2 = listOf("photo2.jpg", "photo3.jpg", "photo4.jpg")
 * comparePhotos(photos1, photos2) returns mapOf("photo1.jpg" to emptyList(), "photo2.jpg" to listOf(1), "photo3.jpg" to listOf(1), "photo4.jpg" to emptyList())
 */
fun comparePhotos(photos1: List<String>, photos2: List<String>): Map<String, List<Int>> {

    return photos1.associate { photo1 ->
        photo1 to photos2.map { if (photo1 == it) 1 else 0 }
    }
}
/**
 * Given two lists of photos, return a map containing the similarities between them.
 *
 * @param photos1 The first list of photos.
 * @param photos2 The second list of photos.
 * @return A map containing the similarities between the two lists of photos.
 *         The keys are the photo names and the values are lists representing the similarities.
 *
 * Example:
 * photos1 = listOf("photo1.jpg", "photo2.jpg", "photo3.jpg")
 * photos2 = listOf("photo2.jpg", "photo3.jpg", "photo4.jpg")
 * comparePhotos(photos1, photos2) returns mapOf("photo1.jpg" to emptyList(), "photo2.jpg" to listOf(1), "photo3.jpg" to listOf(1), "photo4.jpg" to emptyList())
 */
fun comparePhotos(photos1: List<String>, photos2: List<String>): Map<String, List<Int>> {
/**
 * Given two lists of photos, return a map containing the similarities between them.
 *
 * @param photos1 The first list of photos.
 * @param photos2 The second list of photos.
 * @return A map containing the similarities between the two lists of photos.
 *         The keys are the photo names and the values are lists representing the similarities.
 *
 * Example:
 * photos1 = listOf("photo1.jpg", "photo2.jpg", "photo3.jpg")
 * photos2 = listOf("photo2.jpg", "photo3.jpg", "photo4.jpg")
 * comparePhotos(photos1, photos2) returns mapOf("photo1.jpg" to emptyList(), "photo2.jpg" to listOf(1), "photo3.jpg" to listOf(1), "photo4.jpg" to emptyList())
 */
fun comparePhotos(photos1: List<String>, photos2: List<String>): Map<String, List<Int>> {

    return photos1.associate { photo1 ->
        photo1 to photos2.map { if (photo1 == it) 1 else 0 }
    }
}