/**
 * This function takes in two lists, one containing negative integers and another containing floating-point numbers.
 * It returns a list containing the elements that are common to both lists.
 */
fun findIntersectionOfNegativeIntegersAndFloatNumbers(negativeIntegers: List<Int>, floatingPointNumbers: List<Double>): List<Int> {

    // Initialize an empty list to store the common elements
    val intersection = mutableListOf<Int>()

    // Iterate through each element in the first list
    for (num in negativeIntegers) {
        // Check if the element is present in the second list (after converting it to integer)
        if (num.toDouble() in floatingPointNumbers) {
            intersection.add(num)
        }
    }

    return intersection
}
/**
 * This function takes in two lists, one containing negative integers and another containing floating-point numbers.
 * It returns a list containing the elements that are common to both lists.
 */
fun findIntersectionOfNegativeIntegersAndFloatNumbers(negativeIntegers: List<Int>, floatingPointNumbers: List<Double>): List<Int> {
/**
 * This function takes in two lists, one containing negative integers and another containing floating-point numbers.
 * It returns a list containing the elements that are common to both lists.
 */
fun findIntersectionOfNegativeIntegersAndFloatNumbers(negativeIntegers: List<Int>, floatingPointNumbers: List<Double>): List<Int> {

    // Initialize an empty list to store the common elements
    val intersection = mutableListOf<Int>()

    // Iterate through each element in the first list
    for (num in negativeIntegers) {
        // Check if the element is present in the second list (after converting it to integer)
        if (num.toDouble() in floatingPointNumbers) {
            intersection.add(num)
        }
    }

    return intersection
}