/**
 * Given a list of photos, split them into groups based on their resolution.
 *
 * The resolution of a photo can be determined by dividing its width by its height.
 * A photo is considered high-resolution if the result is greater than or equal to 1.
 * A photo is considered low-resolution if the result is less than 1.
 *
 * @param photos A list of pairs representing the width and height of each photo.
 * @return A pair containing two lists, the first one with high-resolution photos and the second one with low-resolution photos.
 */
fun splitPhotosIntoGroups(photos: List<Pair<Int, Int>>): Pair<List<Pair<Int, Int>>, List<Pair<Int, Int>>> {

    val highResolution = mutableListOf<Pair<Int, Int>>()
    val lowResolution = mutableListOf<Pair<Int, Int>>()

    for ((width, height) in photos) {
        val resolution = width.toDouble() / height
        if (resolution >= 1) {
            highResolution.add(Pair(width, height))
        } else {
            lowResolution.add(Pair(width, height))
        }
    }

    return Pair(highResolution, lowResolution)
}
/**
 * Given a list of photos, split them into groups based on their resolution.
 *
 * The resolution of a photo can be determined by dividing its width by its height.
 * A photo is considered high-resolution if the result is greater than or equal to 1.
 * A photo is considered low-resolution if the result is less than 1.
 *
 * @param photos A list of pairs representing the width and height of each photo.
 * @return A pair containing two lists, the first one with high-resolution photos and the second one with low-resolution photos.
 */
fun splitPhotosIntoGroups(photos: List<Pair<Int, Int>>): Pair<List<Pair<Int, Int>>, List<Pair<Int, Int>>> {
/**
 * Given a list of photos, split them into groups based on their resolution.
 *
 * The resolution of a photo can be determined by dividing its width by its height.
 * A photo is considered high-resolution if the result is greater than or equal to 1.
 * A photo is considered low-resolution if the result is less than 1.
 *
 * @param photos A list of pairs representing the width and height of each photo.
 * @return A pair containing two lists, the first one with high-resolution photos and the second one with low-resolution photos.
 */
fun splitPhotosIntoGroups(photos: List<Pair<Int, Int>>): Pair<List<Pair<Int, Int>>, List<Pair<Int, Int>>> {

    val highResolution = mutableListOf<Pair<Int, Int>>()
    val lowResolution = mutableListOf<Pair<Int, Int>>()

    for ((width, height) in photos) {
        val resolution = width.toDouble() / height
        if (resolution >= 1) {
            highResolution.add(Pair(width, height))
        } else {
            lowResolution.add(Pair(width, height))
        }
    }

    return Pair(highResolution, lowResolution)
}